G
Guest
Hi,
I have a worker thread that listens for Datagrams using "data = listner.receive(receivedIPInfo)"
The problem im facing is that my Application wont close properly.
The worker thread runs a While loop. In my form closing im checking for the boolean variable that the while loop uses and setting it to FALSE so that the thread completes and hence my app terminates properlyl. The while loop variable gets set to false but the app still doesnt close properly.
I think its becase the thread has not passed the "data = listner.receive(receivedIPInfo)" statement and wont until it receives a datagram, therefore the while loop variable cant be examined. Is this the root of my problem? How do I solve it?
All advice is greatly appreciated.
Thanks in advance.
I have a worker thread that listens for Datagrams using "data = listner.receive(receivedIPInfo)"
The problem im facing is that my Application wont close properly.
The worker thread runs a While loop. In my form closing im checking for the boolean variable that the while loop uses and setting it to FALSE so that the thread completes and hence my app terminates properlyl. The while loop variable gets set to false but the app still doesnt close properly.
I think its becase the thread has not passed the "data = listner.receive(receivedIPInfo)" statement and wont until it receives a datagram, therefore the while loop variable cant be examined. Is this the root of my problem? How do I solve it?
All advice is greatly appreciated.
Thanks in advance.