Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » Heap memory leaks - how to debug the fastest way?[SOLVED]
Re: Heap memory leaks - how to debug? [message #1773 is a reply to message #1757] |
Sat, 18 March 2006 11:54   |
 |
mirek
Messages: 14265 Registered: November 2005
|
Ultimate Member |
|
|
fudadmin wrote on Fri, 17 March 2006 18:02 | In my app buglog I have
Heap leaks detected:
MemoryWatch(0xDE2388);
MemoryWatch(0xDE23C8);
MemoryWatch(0xDE2448);
MemoryWatch(0xDE2488);
How to find the culprits the fastest way?
|
Well, there is the purpose for above format 
Put those MemoryWatch at the beginning of APP_MAIN, then place breakpoint at the line 79 of Core/heapdbg.cpp and start in debug mode...
Well, in fact, this does not help always (because the memory can be allocated and deallocated many times before being leaked), but usually it is a good idea to give it a try. If that fails, use traditional methods.... (usually, deactivate parts of the code until you spot the leak).
BTW, most memory leaks I have experienced recently were caused by missing virtual destructor.
Mirek
|
|
|
Goto Forum:
Current Time: Mon Jul 07 11:15:44 CEST 2025
Total time taken to generate the page: 0.06879 seconds
|