You haven't provided any information on where the crash is occurring. For all we know, your application could be crashing at any time between the call to SysUIAppSwitch and the point where your application exits.
I would recommend doing what the error message suggests, and use a debugger to find out where your application is crashing. *Then* you may be able to figure out *why*.
-- Keith
At 3:43 PM +0530 12/29/03, Dhanashri wrote:
We have an application where we call SysUIAppSwitch to switch to different other applications on different input conditions. This is written for Palm OS 4.1. But this code frequently crashes with this error "Bus Error- Connect to Palm Debugger". If we remove the SysUIAppSwitch calls, there is no such error seen. We are using the API as follows :
DmSearchStateType SearchType;
error = DmGetNextDatabaseByTypeCreator(true, &SearchType, 'appl', appID, false, &cardNo, &dbID);
if(!error)
{
error = SysUIAppSwitch (0, dbID, sysAppLaunchCmdNormalLaunch, NULL);
if (error)
ErrAlert (error);
}
else
{
ErrAlert (error);
}
Please advise us on what else should be done or what could be wrong in this code.
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
