>...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/