Your switch statement handles sysAppLaunchCmdDisplayAlarm and
sysAppLaunchcmdNormalLaunch using the same code. Probably, you are using
global variables, which are allowed in normal launch, but not on Alarm
launch. Try this:
switch (cmd)
{
case sysAppLaunchCmdDisplayAlarm:
{
UInt cardNo;
LocalID dbID;
SysCurAppDatabase(&cardNo, &dbID);
SysUIAppSwitch(cardNo, dbID, sysAppLaunchCmdNormalLaunch,
NULL);
}
break;
case sysAppLaunchCmdNormalLaunch:
error = AppStart();
if (error)
return error;
FrmGotoForm(MainForm);
AppEventLoop();
AppStop();
break;
default:
break;
}
--
Sergio Carvalho
---------------
[EMAIL PROTECTED]
If at first you don't succeed, skydiving is not for you