Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » Warning Heap memory leak when closing program
Re: Warning Heap memory leak when closing program [message #32524 is a reply to message #32523] |
Mon, 23 May 2011 19:52 |
|
silverx wrote on Mon, 23 May 2011 19:08 | How can I capture this warning when closing the program and not have it displayed for a user of the program?
|
Put MemoryIgnoreLeaksBegin()/MemoryIgnoreLeaksEnd() end around the call to the function that causes the leak. Alternatively, create an object of type MemoryIgnoreLeaksBlock, it will call these functions in constructor/destructor, thus affecting everything from its creation till the end of scope.
Best regards,
Honza
PS: Best solution would be of course to use non-leaking library
|
|
|
Goto Forum:
Current Time: Sat Apr 27 09:12:38 CEST 2024
Total time taken to generate the page: 0.03097 seconds
|