Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/10/02 22:11
Read: times


 
#25645 - RE: cport problem
"It also suggests to me that waiting for the OnPortClose Event might be the way to synchronise it all & avoid problems?"

I have now tried this, and it does seem to work:
I use the OnPortOpen Event(s) to increment a 'number of open ports' counter, and the OnPortClose Event(s) to decrement the counter;
I don't let the Application exit until the number of open ports is zero - ie, everything is properly closed!

I'd be interested to hear if this sort of approach does solve your problem.

List of 11 messages in thread
TopicAuthorDate
cport problem            01/01/70 00:00      
RE: cport problem            01/01/70 00:00      
RE: cport problem            01/01/70 00:00      
RE: cport problem            01/01/70 00:00      
RE: cport problem            01/01/70 00:00      
RE: cport problem            01/01/70 00:00      
RE: cport problem            01/01/70 00:00      
RE: cport problem            01/01/70 00:00      
RE: cport problem            01/01/70 00:00      
RE: cport problem            01/01/70 00:00      
RE: cport problem            01/01/70 00:00      

Back to Subject List