I simplified my program from around 19K lines to this (yes, this is the whole thing),
and I still get a fatal exception. Can anyone explain why? The OS is 3.5, the code
model is "Small."
#include <PalmOs.h>
struct A{
char c[16];
};
struct B{
A data;
B(){ StrCopy(data.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/