it seems that you want to display an alert form AFTER the eventloop &
appstop,
i think you must do it inside a place that the OS can retrive events from
the user (pressing OK button)
maybe...

shay


"Patrick Ouellet" <[EMAIL PROTECTED]> wrote in message
news:33708@palm-dev-forum...
>
> Ok here's the situation..
>
> DWord PilotMain( Word cmd, Ptr cmdPBP, Word launchFlags)
> {
>     return StarterPilotMain(cmd, cmdPBP, launchFlags);
> }
>
> static DWord StarterPilotMain(Word cmd, Ptr cmdPBP, Word launchFlags)
> {
>  Err error;
>
>  switch (cmd)
>  {
>   case sysAppLaunchCmdNormalLaunch:
>   {
>    error = AppStart();
>    if (error)
>    {
>     return error;
>    }
>
>    FrmGotoForm(MainForm);
>    AppEventLoop();
>    AppStop();
>    break;
>   }
>  }
>  FrmCustomAlert(MessageAlert, "", "Test", "");
>  return 0;
> }
>
> Ok I removed a couple of lines for clarity...
>
> So I can see the Test message box appear
> but once I've hit OK the Palm freeze up and I must reset it.
>
> So does someone have an Idea of whats happenning ??
> What can I do to solve this...
>
> If you look closely it goes like this
> FrmCustomAlert();
> return 0;
> return 0;
>
> And its over... so what can cause the palm to freeze when it goes back
> to the App Laucher ??
>
> --
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> Patrick Ouellet - Programmeur S�nior
> [EMAIL PROTECTED]
> Recherche & Devloppement
> Les Entreprise Microtec inc.
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> One Future, two choices:
> Oppose them or let them destroy us!!
> Word from a Linux user,
> speaking of Micro$oft
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>
>
>
>



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

Reply via email to