You need to post an appStop event to the event queue and let your application exit normally.
Regards, Steve Mann On Dec 5, 2006, at 9:35 AM, Joao Ribeiro wrote: > Hy there, > > I'm having trouble ending my application when someone removes an > expansion card from the slot. > When I remove it the application does end, but the screen just > turns grey. > I want it to return to the Application launcher (palms main > interface). > Can someone help? > > > > This is in PiloTMain: > > case sysAppLaunchCmdNotify: > > if (launchFlags & sysAppLaunchFlagSubCall)// Only respond > if HOPE is currently running. > { > HandleNotification( (SysNotifyParamType *) cmdPBP); > } > > This is in my HandleNotification: > static void HandleNotification (SysNotifyParamType *param) > { > switch (param->notifyType) > { > case sysNotifyVolumeUnmountedEvent: > { > AppStop(); > } > } > } > > > Thanks in advance, > João > -- For information on using the PalmSource Developer Forums, or to > unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/