-
Errors On Program Exit
I started playing with my new copy of MSVC++ 7 with a program that I am working on. With MSVC++ 6 I was getting the following 2 errors/messages after everything had closed in the debug window:
The thread 0xFFF6B423 has exited with code -1 (0xFFFFFFFF).
The thread 0xFFF5B5BF has exited with code -1 (0xFFFFFFFF).
Now with MSVC++ 7 I get these errors on close:
First-chance exception at 0x77fa03bc in MyProj.exe: 0xC0000008: An invalid HANDLE was specified.
Unhandled exception at 0x77fa03bc in MyProj.exe: 0xC0000008: An invalid HANDLE was specified.
And the MSVC++ breaks at that point and I have to hit continue or break to move on.
They seem to be triggered by __crtExitProcess(0); Which is not done by me, it must be done by MSVC.
My first question is, are these two errors/messages the same? Second, are how can I fix or track down these?
Any help would be great.
-
The VC++6 ones are perfectly okay, they just mean that a thread exited with a specified return value (if its random, be worried :D).
Have you tried running it through the debugger? What destructors do things with HANDLE values?
-
Well I have stepped through my program and tried to track it down. I am pretty sure that the error is cause by some COM objects and/or some Novell objects that are using CoCreateInstance to hookup. Any idea how and I can track this down farther?
-
Never used COM (I avoid things like that) so I wouldn't know, sorry.
-
AAAHHH parksie come on man your letting me down.:mad:
You have always been helpful in the past.....I guess my image of you has been shattered forever now.
Oh well I will keep trying. Hopefully I will get it sooner or later.
-
COM doesn't fit into my ideas of system development - why bother when you've got all the object orientation features you need with C++? You can do RPC with CORBA which is much better suited to C++.
I think RPC is in Bjarne Stroustrup's presentation notes for possible additions to C++.
-
Believe me if I could do it another way I would. But to my knowledge it is the only way to hookup to Novell's GroupWise. Unfortuanatly the Docs are awful and the examples are even worse. So I am stuck with this for now I guess.