That is the same problem described before...
The reason that you are not seeing the memory leaks is because you are not debuging the Xerces DLL.
Again, either changing your runtime library, using /MD (production) or /MDd (debug) or adding two functions to the Xerces DLL to delete objects and arrays would solve your problem.
-----Original Message-----
From: Ross MacGregor [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 29, 2000 9:28 AM
To: [EMAIL PROTECTED]
Subject: Xerces & MFC DLL don't mix?
I am using Xerces-C 1.1.0 d15 for Win32.
I have read the thread on the memory leaks caused by reloading the DLL and
want to know if this is the same problem I have run into.
I seems that Xerces does not like to link MFC as a dynamically linked
library.
The following small program produces a whole page of memory leaks when it is
shut down. If I link MFC as a statically linked library there are no
problems.
main()
{
CString str;
XMLPlatformUtils::Initialize();
return 0;
}
Additionally I noticed another strange thing using the statically linked
MFC. I cannot delete the strings returned from DOMString::transcode. The
code asserts if try to delete it, plus when I shut down the program, no
memory leaks are detected.
I know I am supposed to delete these strings, so what's going on here? I
heard that this might happen if you reload the library. I am not doing this
explicitly, is this something that is being done behind the scenes. Could
someone explain this?
-ross