--- Typical Joe <[EMAIL PROTECTED]> wrote: > > Are memory leaks only ever caused by not deallocating a field's > old handle ? > Are there any other causes of leaks ?
Allocate dynamic memory, then don't free it -> memory leak. No field required. For Example, put this in your AppStart(): Char * c; c = MemPtrNew(100); Then debug your app on a recent version of POSE. It will tell you all about the memory leak. The above problem would show up in the log file like so: 0.000: Non-relocatable chunk leaked at 0x0003A858, size = 100 0.000: Chunk allocated by: 0.000: AppStart 0.000: StarterPalmMain 0.000: PilotMain 0.000: __Startup__ That should make it very easy to find the leak! > > You might guess that I have a problem with this. But I already > MemHandleFree'ed my old handles ! Did you do FrmCloseAllForms() before exiting? If you don't, you'll get a memory leak. __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
