Hi,
I am using a global variable inside a MFC regular DLL. The problem happens when I close the program. The are hundreds of access violations and points to the destructor of the global variable and "if ( _CRT_INIT(hDllHandle, dwReason, lpreserved) == FALSE )" in DllMain().
Can anybody give me some idea what I should take into account about the global variables in DLL?

thanks in advance
Jessie