IonicWind Software

Aurora Compiler => General Discussion => Topic started by: Bruce Peaslee on December 28, 2005, 10:08:03 AM

Title: Memory Leaks
Post by: Bruce Peaslee on December 28, 2005, 10:08:03 AM
I understand that memory leaks are undesirable, but I don't know all the ways they can be generated. Is there some way to detect them programmatically?
Title: Re: Memory Leaks
Post by: Parker on December 28, 2005, 05:57:24 PM
You can generate them by allocating memory with NEW or a windows function like GlobalAlloc and then forgetting to free it, or assigning its pointer somewhere else. There's not an easy way to detect them unless you build your own garbage collecting system and allocate all variables through it.