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.