Keep in mind that when freeing your pointers, if any of them point to text fields on your form, the system will try to free them & you may crash. Same goes for handles. If you don't want the system to touch them (you dispose of them yourself, or need them to hang around for some reason), point the fields to a NULL before closing the form...
-Tom on 11/8/01 19:08, Michael Yam at [EMAIL PROTECTED] wrote: > The idea behind returning "false" is to let the OS do its own internal > cleanup. > > You're still responsible for freeing memory and resources. Typical commands > would be: > > MemHandleUnlock() > MemHandleFree() > DmReleaseResource() > > etc... > > Michael Yam > www.ytechnology.com > > > Snuffy2 <[EMAIL PROTECTED]> wrote in message news:67423@palm-dev-forum... >> >> OK, I'm still having some probs with frmClosEvent. My program is crashing >> when I close the form, so I'm assuming I'm missing something there. I > tried >> not handling it (didn't work), tried returning true (didn't work), so I'm >> gonna keep it like everyone says and return false. >> >> OK so now I'm returning false, but what do I need to do when frmCloseEvent >> is called? I'm assuming I need to release pointers, but what's the >> command? What else do I need to release or delete or what? >> >> I can't stand these crashes!! I need to fix this, aarrrrggggggggghhhhh >> >> Thanx >> Snuffy2 >> >> >> >> > > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
