Thanks for the clear explanation, David.
I'm glad to know we're not leaking memory owned by the system...my
understanding is that since the system never exits, the memory would be
"permanently" leaked.
-Bob
> -----Original Message-----
> From: David Fedor [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 10, 2000 5:38 PM
> To: Palm Developer Forum
> Subject: Re: SysUIAppSwitch() & SysAppLaunch()
>
>
> >...you have to use
> >MemPtrSetOwner( ptr, 0 ) to make the pointer belong to the
> system, and
> >thus not get free'ed... what should the callee do with this
> memory once it
> >is done with it? MemPtrFree() seems to cause big problems.
>
> Don't do anything to that pointer, because when the callee
> (the second app)
> quits, the system automatically frees that pointer. There's no way to
> prevent it from doing so. (If you need more control, pass
> the info in a
> handle and pass a pointer to a small buffer which contains
> that handle...
> having set the owner of the handle to zero as well.)
>
> I'm pretty sure this is covered in the docs and/or FAQs, but
> I see it isn't
> in the reference entry for SysAppLaunch. I'll ask for it to be added,
> since that's the most natural place to say it.
>
> -David Fedor
> Palm Developer Support
>
>
>
> --
> For information on using the Palm Developer Forums, or to
> unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/