CompuServe Messages

DLL ExitInstance()

    11-Jul-94 20:43:01
Fm: Mary Kirtland [MFCJ] 74017,2743
To: John M. Urbansky 74724,3606
John, This is a bug in the NT version of MFC2.0. I believe ExitInstance() is *supposed* to be called in the PROCESS_DETACH case for DllMain(), but it isn't. Basically, you need to write your own DllMain(). I'm pretty sure you just need to modify the case for dwReason == DLL_PROCESS_DETACH to call ExitInstance() if there is an application object, before AfxWinTerm() is called. But I don't have the code in front of me, so you might check the KB to see if this problem has made it in yet… Hope this helps, Mary Kirtland MFCJournal