I have written a program using sockets to send and retrieve information between a client and a server. My problems comes when I try to download a large file or a couple of smaller files...i get a stack overflow error on my client interface.....when I view the stack I see that the procedure used to receive the file is called over and over...so I have narroed my problem down.
I have limited the number of doevents clauses down to only the essentials....I have no fixed length strings...etc..
Now how do I go about fixing this? I was thinking that if I took this procedure and put it in it's own thread perhaps? I am a major newbie when it comes to threads. What are my possible solutions?
I have limited the number of doevents clauses down to only the essentials....I have no fixed length strings...etc..
Now how do I go about fixing this? I was thinking that if I took this procedure and put it in it's own thread perhaps? I am a major newbie when it comes to threads. What are my possible solutions?