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/

Reply via email to