U++ framework
Do not panic. Ask here before giving up.

Home » Developing U++ » U++ TheIDE and Library: Releases and ChangeLogs » Improved heap diagnostics
Improved heap diagnostics [message #14822] Sun, 16 March 2008 15:47 Go to previous message
mirek is currently offline  mirek
Messages: 14290
Registered: November 2005
Ultimate Member
Debug mode heap diagnostics improved. Write before/past block checks are now more accurate.

Memory leaks now list a "memory breakpoint" value. Add this value to commandline (e.g. "--memory-breakpoint__ 107749") and the U++ will stop at corresponding "new" statement with segmentation fault (something you can catch with debugger and see the call stack). (Of course, if you are about to detect the real culprit, the code must do exactly the same thing..)

Also:

void MemoryIgnoreLeaksBegin();
void MemoryIgnoreLeaksEnd();

supress any memory allocated in between to be considered a memory leak. This can be nested and is thread specific.

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: KDE early fix
Next Topic: plugin/zip
Goto Forum:
  


Current Time: Sun Apr 26 02:35:11 GMT+2 2026

Total time taken to generate the page: 0.00946 seconds