Hi,
I have a program that gets lots of packets constantly(winsock).
The problem seems to be:

if I don't use DoEvents in my data_arrival code the events queue grows(?) and the program might crash.
if I use DoEvents some of the events are cut in the middle (becuase an event arrives) and lost.

Is there a way to avoid these problems (assuming working in a single threaded VB application).

Thanks,
Gill.