As was mentioned in other threads, even if leak detection is programmatically enabled (in the mes file), detection will not be truly active if the madexcept32.dll is not found.
Is there a way to detect whether leak detection is truly active and taking place (enabled in .mes, and DLL found) at runtime?
thanks!
detect at runtime if leak detection is active
Re: detect at runtime if leak detection is active
You can check "MESettings().ReportLeaks" to see if it's enabled, and you can use GetModuleHandle('madExcept32.dll') to check if the leak reporting DLL is currently loaded in your process. For 64bit, look for madExcept64.dll.