Can I continue this subject?
I also found vld unusefull with Maya.
Can someone recommend other methods for leak detection?
#define newd new(_NORMAL_BLOCK, __FILE__, __LINE__) doesn't work for me when I use it in my plugin...
Secondly here is an example of a small empty plugin where leaks are detected using _CrtDumpMemoryLeaks
CODE
#define _CRTDBG_MAP_ALLOC
#define CRTDBG_MAP_ALLOC
#include
#include
#include
DeclareSimpleCommand( myCmd, "", "8.5");
MStatus myCmd::doIt( const MArgList& args )
{
MStatus stat = MS::kSuccess;
setResult( "myCmd command executed!\n" );
_CrtDumpMemoryLeaks();
return stat;
}
And last thing - (if anyone knows) - the MSDN says that #define _CRTDBG_MAP_ALLOC will cause dumping of lines and filenames where the leaks were detected - this doesn't work for me too...
Thanks....