Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Invalid Handle

Status
Not open for further replies.

bubak

Programmer
Jun 25, 2001
208
SK
I have a programm, where I use WriteFile,ReadFile and CloseHandle, because of serial (com port) communication. It works ok, but when I try debugging it, it shows me :
First chance Exception in myprg.exe (NTDLL.DLL) 0xC00000008 Invalid Handle. I'm Using VC6 and NT4, all other programs r working and also debuging fine, so I there must be sth. in this one, but I don't know what.
Thanx
Bubak
 
try to put file you open in the projects current directory, not in subdirectory debug. Or spacifi in the program the full path to your file. John Fill
1c.bmp


ivfmd@mail.md
 
I'm opening comport as comPort=CreateFile("COM1",GENERIC_READ .....
Bubak
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top