Can someone please explain what the limitations are for a program running
after a reset (responding to a SystemReset launch code). I know there are
no global variables available, but my program doesn't reference any, and it
still dies on a reset. It runs fine on normal launch, and it does the exact
same lines of code.
Here is the basic outline of the code:
DWord PilotMain( Word launchCode, Ptr cmdPBP, Word launchFlags)
{
if(launchCode == Normal or SysReset)
{
char *dbNames[] = {/*bunch of strings*/};
LocalID DbLocalID;
VoidHand dbImageHandle;
int currDB;
void *DBImgPtr;
// these functions are called in this order
// (code inbetween calls is left out...
// most is variable assignments + if statements)
DmFindDatabase();
DmGetResource();
DmGetResource();
DmCreateDatabaseFromImage();
MemHandleUnlock();
DmReleaseResource();
}
}
Hope someone out there can tell me what here I can't do!
Thanks!
-Jeff Valore