I have an application that is crashing (returning to launcher), for no 
apparent reason.  I say no apparent reason, because it only does this on 
the Tungsten "W".  All other Palms work fine as well as all other 
Tungstens.

Here is the problem or symptom:

Here is my Palm Main function:

/******************************************************************************/
UInt32  PilotMain (UInt16 cmd, MemPtr cmdPBP, UInt16 launchFlags) {
    Int16 error;

    if (cmd == sysAppLaunchCmdNormalLaunch) {
        error = StartApplication();   // Application start code
        if (error) {
            return error;
        }
        EventLoop();                    // Event loop
        StopApplication ();           // Application stop code
    }
    return 0;
}

The "error" section is seen as in "error" condition, even though there are 
confirmed NO errors from the StartApplication() function.

The only thing is there is no "return error" statement in the 
StartApplication() function.  When I put the "return error" as the last 
statement in the StartApplication function, the application works on the 
"W".

So, I have the fix but I'm curious the "specific" reason this fails on ONLY 
the "W" device.

Any explaination?


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to