You can't access global variables except during a normal launch code. If
you create your structure/class object within PilotMain it should work.
----- Original Message -----
From: "David Vestal" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Wednesday, February 11, 2004 10:07 AM
Subject: RE: Super-simplified fatal exception
Heck, it even crashes like this:
// This is the entire program: Palm OS 3.5, "small" code model.
#include <PalmOS.h>
struct B{
B(){
char c[16];
StrCopy(c, "List #1");
}
};
UInt32 PilotMain(UInt16 cmd, MemPtr cmdPBP, UInt16 launchFlags){
if(cmd == sysAppLaunchCmdNormalLaunch)
B b; // OK!
if(cmd == sysAppLaunchCmdExgReceiveData)
B b; // Fatal Exception!
return errNone;
}
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/