I've just started my very first project using the OS3.5 stationary. :)
However, after changing some code, my program cannot reset anymore! I'm not
sure when the problem started and thus I dunno where is the problematic
chunk of code. When I reset, I get the following error:
Starter (1.0) just read from memory location 0x8003A688. This access usually
means that the application accessed a global variable after PilotMain was
called with a launch code that does not support globals. The last launch
code sent to the application was "sysAppLaunchCmdSystemReset".
However, my PilotMain code is this (which is the same code from the
stationary, I did not make any changes!):
UInt32 PilotMain( UInt16 cmd, MemPtr cmdPBP, UInt16 launchFlags)
{
Err error;
error = RomVersionCompatible (ourMinVersion, launchFlags);
if (error) return (error);
switch (cmd)
{
case sysAppLaunchCmdNormalLaunch:
error = AppStart();
if (error)
return error;
FrmGotoForm(MainForm);
AppEventLoop();
AppStop();
break;
default:
break;
}
return errNone;
}
Can somebody please help me out here! I'm going nuts over this problem!
Regards,
Gee.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/