Original Post
🔒 Locked
Memory Leaks
Advertisement
one time when I was programming I my program would always crash after a copule of minutes. I hit CRTL ALT DELETE and noticed my memory available was falling like a rock. I found out I was using a new in a loop without a delete and I was requesting memory without deleting it. That also can happen with other functions that allocate memory and that you have to manually deallocate it.
You can specify a breakpoint at the beginning of
your code (cant remember the function ... BreakOnAlloc
or something).
Note the {alloc id number} you get in the dump,
pass this value to the function above, recompile,
run, test and there you go. You've got the line AND
the complete context of your program at allocation
time.
[edited by - cnstrnd on October 10, 2003 12:18:19 AM]
your code (cant remember the function ... BreakOnAlloc
or something).
Note the {alloc id number} you get in the dump,
pass this value to the function above, recompile,
run, test and there you go. You've got the line AND
the complete context of your program at allocation
time.
[edited by - cnstrnd on October 10, 2003 12:18:19 AM]
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement