Hello. I've just created a DLL (VC++ 6.0), and my program loads and unloads it very often.
So my pupils are complaining about the excesive waste of memory by my program. I've been reading Microsoft's page: The CWinApp destructor in MFC included with Visual C++ 4.2 and later now frees the data assigned to the member variables shown above by passing the pointer to the free() function. Doing this prevents memory leaks, which would occur if an MFC regular DLL were dynamically loaded and unloaded. But I do not notice it in my Release version (perhaps I misconfigure VC++ after changing Xerces libraries), and in my Debug version I get this error message: Debug Assertion Failed! program xxxx.exe File: dbgheap.c Line: 1011 Expression: _CrtlsValidHeapPointer(pUserData) This error is dealing with CWinApp, so I believe that I'm doing something wrong. I would be extremely obliged if anybody could share any experience. Thank you very much. Regards. -- _______________________________________________ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]