You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Jon Smirl <jo...@mediaone.net> on 2000/08/30 05:28:59 UTC
Xalan-C: Memory Leak
I'm using a global function:
XSLTProcessorEnvSupportDefault::installExternalFunctionGlobal(
theNamespace, "runningTotal", FunctionTotal());
When I exit my app the FunctionTotal object hasn't been destroyed. Do I need
to delete this some how or should XSLTEngineImpl::Terminate() delete it?
How about adding this to the debug build:
#ifdef _DEBUG
#include "crtdbg.h"
#define new new(_NORMAL_BLOCK, __FILE__, __LINE__)
#endif
and then do this in Terminate
#ifdef _DEBUG
_CrtDumpMemoryLeaks();
#endif
Jon Smirl
jonsmirl@mediaone.net