"Bob Whiteman" <[EMAIL PROTECTED]> wrote in message
news:20641@palm-dev-forum...
> When using SysUIAppSwitch() and SysAppLaunch() you can provide a pointer
to
> a buffer in which you pass parameters.  It seems that you have to use
> MemPtrSetOwner( ptr, 0 ) to make the pointer belong to the system, and
thus
> not get free'ed when the OS does its automatic garbage collection when the
> app exits.  Now, what should the callee do with this memory once it is
done
> with it?  MemPtrFree() seems to cause big problems.

In my experience, you only need to set the owner of the command parameter
block to zero (ie. the "system") for SysUIAppSwitch. You don't have to free
the memory in this case; SysUIAppSwitch will take care of that. I found the
docs a bit vague on this subject.
--
Danny Epstein
OS Engineer, Palm Inc.


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to