Hello again and thank you for your answer. I tried to do debug as you
suggested. Now the debugger stops on line 109 of file atonexit.c:
retval = __dllonexit(func, &onexitbegin, &onexitend);
This is the call stack:
ntdll.dll!RtlpNtMakeTemporaryKey() + 0x6a76 bytes
[Frames below may be incorrect and/or missing, no symbols loaded
for ntdll.dll]
ntdll.dll!RtlpNtMakeTemporaryKey() + 0x848f bytes
ntdll.dll!RtlInitializeSListHead() + 0x1075b bytes
msvcr80.dll!_msize() + 0xf8 bytes
msvcr80.dll!_invalid_parameter() + 0xf9 bytes
GcpsDotNetApi.dll!_onexit(int (void)* func=0x04c70a3d) Line 110 +
0x10 bytes C
GcpsDotNetApi.dll!atexit(void (void)* func=0x04c70a3d) Line 127 +
0x9 bytes C
GcpsDotNetApi.dll!`dynamic initializer for 'afxModuleState''() Line
66 + 0x14 bytes C++
[Managed to Native Transition]
GcpsDotNetApi.dll!_initterm(void** pfbegin = 0x04C7134C, void pfend =
) Line 130 C++
GcpsDotNetApi.dll!<CrtImplementationDetails>::LanguageSupport::InitializeNative()
Line 534 C++
GcpsDotNetApi.dll!<CrtImplementationDetails>::LanguageSupport::_Initialize()
Line 680 C++
GcpsDotNetApi.dll!<CrtImplementationDetails>::LanguageSupport::Initialize()
Line 824 + 0x9 bytes C++
GcpsDotNetApi.dll!?.cctor@@$$FYMXXZ() Line 872 C++
Can you make any sense of it?
This is a LOT more useful. It looks like the problem is with global
destructors to automatically run.
I think whatever you did to "fix" VS2005 is causing the trouble. Can you