Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1789
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

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 Wink
 
Read Message icon7.gif
Read Message
Read Message icon7.gif
Read Message
Read Message icon13.gif
Read Message
Read Message
Read Message
Read Message icon14.gif
Read Message
Read Message
Read Message icon7.gif
Previous Topic: MINGW resource compile problem , M$ Windows
Next Topic: C2143 Error on even simple window with just one label? Help? What happened?
Goto Forum:
  


Current Time: Sat Apr 27 09:12:38 CEST 2024

Total time taken to generate the page: 0.03097 seconds