Thanks for the suggestion. I moved the call to RomVersionCompatible into the
normal launch code system. Unfortunately, this had no effect.
As you can see below, for any launch code other than normal launch, it
returns 0. Nonetheless, the lockup occurs. And it still occurs only on OS
3.5/IIIxe, not on any of our earlier devices (Palm III, IIIx, SPT1700). It
does occur on the POSE with a IIIxe rom.
This code does make use of the Symbol printing shared library, but that
library was not present on this handheld, and was not loaded. (it doesn't
get loaded/requested until the first printing attempt.)
Please help! I really need to find this bug and get it fixed. It definitely
only happens when my app is present (i.e. can't reproduce immediately after
a hard reset), but I can't find anything wrong in this code.
Here's the current code:
static DWord StarterPilotMain(Word cmd, Ptr cmdPBP, Word launchFlags)
{
Err error;
// Word crc;
switch (cmd)
{
case sysAppLaunchCmdNormalLaunch:
// crc = Crc16CalcBlock(NULL, 256, 0);
error = AppStart();
if (error)
return error;
error = RomVersionCompatible (ourMinVersion, launchFlags);
if (error) return (error);
nprefs.curSelectedBox = 0;
nprefs.boxInverted = 0;
if (prefs.frmID < MainForm)
prefs.frmID = MainForm;
FrmGotoForm(prefs.frmID);
AppEventLoop();
AppStop();
break;
default:
break;
}
return 0;
}
DWord PilotMain( Word cmd, Ptr cmdPBP, Word launchFlags)
{
return StarterPilotMain(cmd, cmdPBP, launchFlags);
}
----- Original Message -----
From: "Peter Epstein" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Friday, July 07, 2000 4:09 PM
Subject: Re: Reset cycling
> I've made the mistake of having RomVersionCompatible access a global that
contains the ROM version (to avoid fetching it more than once). Just for
testing, you might try getting rid of the call to RomVersionCompatible, so
your app is doing nothing for non-normal launches, and see if that helps.
Or, to get even more radical, make the app return 0 regardless of launch
code, and see if that makes the problem go away.
> --
> Peter Epstein
> Palm Inc. Developer
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/