How to debug multiple threads?
I'm using (not by choice) Microsoft's Visual Studio .NET to do my development. I've written an application that uses Microsoft's recommend method for Async Serial I/O (overlapped).
The problem is, In my main UI thread, I'm doing a bit of serial code (sending, receiving, etc). All is good, until for some reason, my Sending thread seems to hang, crash, or something. I've tried placing all kinds of TRACE() statements to help, but i haven't been able to track it down within the send thread.
I am able to break on when the error occurs from within my main UI thread, but I have no idea how I can switch to the Tx thread to see where it's stuck at.
Is this possible? I would hope so...
Thanks
Phil