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