Are you using global variables? Global variables are usually only
available to your app during a normal launch. When launched at reset,
you do not have globals available.

Rewrite your app, or at least the code that runs at reset,  to not use globals.

Note, that if you are building a multi-segment app, intra-segment
linking is done through globals, as well, so you cannot reference the
code in the additional segments without globals.

On 9/21/06, Regis Melo <[EMAIL PROTECTED]> wrote:
Hello!

   I'm trying to write a simple program that write in a PDB every time that
a Palm resets.

   My code is like that:

   UInt32 PilotMain(UInt16 cmd, MemPtr cmdPBP, UInt16 launchFlags) {

switch (cmd)
    {
        case sysAppLaunchCmdSystemReset :
                   // write my code here to write a PDB!


   My question is - Is it possible to write a PDB when a reset event occurs?

   My program works very well when I put my code to write a PDB on
sysAppLaunchCmdNormalLaunch, but when I transfer the code to
sysAppLaunchCmdSystemReset the code fails...

   Is it any limitation of Palm OS??

Thanks!
--

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


--
yisdersomenimororsisasisdenderisorsis?
Jeff Loucks

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

Reply via email to