Hi all,
I need a help with memory leak detection in my DLL which is loaded into third party application as extension. It is similar as extension in SQLite, but not the same. There are registered some functions which are then called by entry point.
Such as:
int cmd_print(const char* unparsed)
{
printf("PRINT: %s", unparsed);
return 0;
}
What I need is to catch leaks in similar method, something like:
int cmd_execute(const char* unparsed)
{
InitLeakDetection();
int status = DoExecuteStuff(unparsed);
DumpMemoryLeaks();
return status;
}
I have tried:
StackWalker - works, but I do not know how to localize leak by its ordinal, because
it is after each function call a greater number.
Visual Leak Detector - locks main thread and I can not resolve it
CRT functions - requires 'new' oerator overload, which makes problems to compile with BOOST libraries
Could you please help me? How would you do it?
IDE: VS2005
Language: C++
Third party app: Bentley MicroStation
Thanks