Oct 8, 2001
Detecting Memory Leaks in Palm OS
Memory is precious in Palm OS, so you can't afford any memory leaks in programs. Therefore, it's very essential to detect any memory leaks. To do this put breakpoints in the program where you want to find any memory leaks. When the program stops at the breakpoint, go to "Show Window" in "Palm" Menu. Type hd 0 here.
The IDE will show all the allocated memory and their sizes. This allows you to check whether the memory that should have been deallocated has been deallocated or not. This helps a long way in making your program leak free.