Hi,
I am developing an application which contains of a binary executable and couple of DLLs.
I do see that in some scenarios I have memory leaks. Since they are not good I want to fix them.
Googling pointed me to this. What I'd like to know is how to define this when the application have multiple DLLs.
1. Should I define _CRTDBG_MAP_ALLOC, only once in my main application start up or I need to define it on every DLL loading?
2. The same with the:
?
The application is a GUI one developed with wxWidgets, so it has 1 entry and 1 exit points.
Thank you.
I am developing an application which contains of a binary executable and couple of DLLs.
I do see that in some scenarios I have memory leaks. Since they are not good I want to fix them.
Googling pointed me to this. What I'd like to know is how to define this when the application have multiple DLLs.
1. Should I define _CRTDBG_MAP_ALLOC, only once in my main application start up or I need to define it on every DLL loading?
2. The same with the:
Code:
_CrtSetDbgFlag ( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF );
The application is a GUI one developed with wxWidgets, so it has 1 entry and 1 exit points.
Thank you.