View Single Post
  #1   Spotlight this post!  
Unread 25-01-2003, 00:17
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
CloseHandle Error!!

I am using Rob's serial port method in Dashboard3D and everything is working well (I'm about half done) but when I go to close the port, the CloseHandle function never returns! The code is as follows:

HANDLE hSerial; //Opened in the constructor with CreateFile, etc.
CSerial::~CSerial(){CloseHandle(hSerial);}

I have debuged it up to that point so it does get to the CloseHandle function but it never passes. It took me two days to even figure out why the process wouldn't end in WinXP! Any suggestions? (I don't want to "just leave it open"...)
__________________
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