Could this problem be because I use a few global variables? How do I fix
this problem?

Thanks,
Donald C. Kirker

"Donald C. Kirker" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi all,
>
> I am working on an application that can handle launch codes such as
> sysAppLaunchCmdGoToURL. I can properly launch the application with these
> calls and it works just fine (all globals, not many of them, appear to
> work), but just after my AppStop code (ApplicationStop) is called, a
> "MemoryMgr.c, Line:3650, Non-word-aligned handle" error is thrown. Right
now
> I am using: SysUIAppSwitch (cardNo, dbID, sysAppLaunchCmdGoToURL, urlP);
to
> launch the application. The application is being exited by tapping the
home
> icon on the silk screen. My PilotMain code is below.
>
> What would call this?
>
> Thanks,
> Donald C. Kirker
>
>
>
> UInt32 PilotMain(UInt16 cmd, void *cmdPBP, UInt16 launchFlags)
> {
>  int error;
>  UInt32 romVersion;
>
>  error = RomVersionCompatible (version50, launchFlags);
>      if (error)
>          return error;
>
>  if (cmd == sysAppLaunchCmdNormalLaunch) {
>   error = StartApplication(cmd, cmdPBP); // Application start code
>   if (error) return error;
>   EventLoop();   // Event loop
>   StopApplication ();  // Application stop code
>  }
>  if (cmd == sysAppLaunchCmdGoToURL || cmd == sysAppLaunchCmdGotoHomepage
||
>      cmd == sysAppLaunchCmdGotoBlank || cmd ==
sysAppLaunchCmdViewBookmarks
> ||
>      cmd == sysAppLaunchCmdViewConnSet) {
>   error = StartApplication(cmd, cmdPBP); // Application start code
>   if (error) return error;
>   EventLoop();   // Event loop
>   StopApplication ();  // Application stop code
>  }
>  }
>  return 0;
> }
>
>
>



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

Reply via email to