View Single Post
  #3   Spotlight this post!  
Unread 25-01-2003, 10:34
Adam Shapiro's Avatar
Adam Shapiro Adam Shapiro is offline
Registered User
FRC #0555 (Montclair Robotics)
Team Role: Alumni
 
Join Date: Jan 2002
Rookie Year: 2001
Location: Montclair, NJ
Posts: 401
Adam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud of
Send a message via AIM to Adam Shapiro
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