I'm having the same problem.  However, I don't think I'm using any globals.
Help please!  I'm using Codewarrior 6 and syncing onto a PalmV running
PalmOS 3.1

My PilotMain looks like this:

DWord PilotMain(Word cmd, Ptr cmdPBP, Word launchFlags)
{   
  if(cmd == sysAppLaunchCmdNormalLaunch)  {
    Err error;

   // 0xMMmfsbbb, where MM is major version, m is minor version
   // f is bug fix, s is stage: 3-release,2-beta,1-alpha,0-development,
   // bbb is build number for non-releases 
   // V1.12b3   would be: 0x01122003
   // V2.00a2   would be: 0x02001002
   // V1.01     would be: 0x01013000
   error = RomVersionCompatible (0x03100000, launchFlags); // 3.1
   if (error) return (error);
    error = StartApplication();
    if(error)  return error;
    EventLoop();
    StopApplication();
  }
  return 0;
}


Jason Dawes wrote in message <618@palm-dev-forum>...
>
>At 03:53 PM 1/28/00 -0500, you wrote:
>>
>>Keep in mind, I am not running the program and getting an error.  I am
>>just trying to load.
>>
>
>You are using globals before you check the launch code.  Do not use globals
>before you are sure you actually have them to use.  Remember that all Palm
>applications on the device are called with a launch code after a sync
>occurs, even ones just installed.
>
>
>






-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to