alan93
March 11th, 2004, 01:29 PM
I have a basic dialog program that connects to another computer over the internet to retrieve some files (small) using a CSocket connection.
It does this repeatedly about every second or 2 for a limited amount of time.
What I am noticing is that the program hangs, or locks up momentarily sometimes during this. Example: moving the mouse over the dialog stops and starts.
Seems like the sending and receiving is stopping the rest of the program.
Is it possible to put sends and receives in a thread ? If so, is there an example of this somewhere?
It does this repeatedly about every second or 2 for a limited amount of time.
What I am noticing is that the program hangs, or locks up momentarily sometimes during this. Example: moving the mouse over the dialog stops and starts.
Seems like the sending and receiving is stopping the rest of the program.
Is it possible to put sends and receives in a thread ? If so, is there an example of this somewhere?