Hi,
I am developing an application in VB.Net, that listens on a COMM port
waiting for an event.
I spawn a new thread, and call the API function WaitCommEvent in order
to wait for the required event to occur.
This is all working great - until I want to end my application.
No matter what I do, I don't seem to be able to find a way to stop the
child thread from waiting for the next event. I have tried aborting the
thread, but it completely ignores me until something has happened at the
serial port. The main application begins to shut down, and then sits
there waiting for the child thread top terminate before it finally closes.
Does anybody have any idea what I can do about this, it's driving me mad!!
Thankyou.
Paul Cheetham