Dear all,
I would like to have an application A working as a schdular to call
another applicaiton B.
For A, I write the following in MainFormInit():
dbID = DmFindDatabase(0, "BdbName");
AlmSetAlarm(0,dbID,0,TimGetSeconds()+60,0);
For B, I write the following in PilotMain():
switch (cmd)
{
case sysAppLaunchCmdDisplayAlarm:
// case sysAppLaunchCmdAlarmTriggered:
case sysAppLaunchCmdNormalLaunch:
error = AppStart();
if (error)
return error;
FrmGotoForm(MainForm);
AppEventLoop();
AppStop();
break;
default:
break;
}
However, after I launch prog. A and wait for 1 minute, Fatal exception
occurs. I have tried both sysAppLaunchCmdDisplay Alarm and
sysAppLaunchCmdAlarmTriggered and both give same result. Can anyone help
please?
Thanks!
philip