|
It is definately a valid handle (I checked for an address in debug) but the app does use multithreading to read from the port. I wasn't sure how to close the thread.
void SerialThread(PVOID pvoid);
_beginthread(SerialThread,0,NULL);<--In the CSerial constructor
I figured I would use _endthread() but then I realized that there is no way to tell it what thread to end. Even though there is only one thread running, I would like to be able to end a specific one and not all in general...
__________________
Mentor to Teams 555, 1929, and 2070!
Currently working in hardware design at Cisco.
Cornell University DARPA Urban Challenge - http://www.cornellracing.com
Co-Captain Team 555 - 2003,2004,2005
Trust, Love, and Magic
|