No, this is only if you want to pass some data to the application that you are 
launching. If you just want to launch a normal app just pass NULL as the last 
parameter to SysUIAppSwitch.

To answer the other question, YES you have to take care to delete the memory block you 
did the MemHandleSetOwner on otherwise you will have a very big memory leak.

Chris

On Wed, 22 Sep 1999 15:17:34 +0800 [EMAIL PROTECTED] wrote:
> Dear all,
> 
> Therefore, are the steps of MemHandleSetOwner and then SysUIAppSwitch
> typical methods of launching application with parameter?
> 
> philip
> 
> chi lu wrote:
> 
> > Hi,
> >
> > I am launching another application from my application passing
> > a parameter.
> >
> > Ex:
> > handle = MemHandleNew( 10 );
> > temp = ( CharPtr )MemHandleLock( handle );
> > MemHandleSetOwner( handle,0 );
> >
> > err = SysUIAppSwitch( cardNo,dbID,
> sysAppLaunchCmdFromToDoLaunch,(Ptr)temp > );
> >
> > Does the PalmOS will take care of freeing the memory after i set
> > the handle as owner 0?
> >
> > Do i have to free the parameter in the launched application?
> >
> > Any help on this will be greatly appreciated.
> >
> > Thanks,
> > chi
> >
> > ______________________________________________________
> > Get Your Private, Free Email at http://www.hotmail.com




This message sent using EMUmail.  http://EmuMail.com

Reply via email to