Padmini,
> My code looks like this..
>           case QuitButton:
>                 //InitialState();
>                  StopApplication();
>                 handled=true;
>                 break;

This should be a better way to do instead:
case QuitButton:
     {
           EventType   evt;

           evt.eType = appStopEvent;
           EvtAddEventToQueue(&evt)
     }
     handled = true;
     break;


Partha.


--- Padmini Paladugu <[EMAIL PROTECTED]>
wrote:
> 
> 
> 
> Dear Friends:
> I am developing a game application.In that
> application if the users wants to 
> quit the game he should be able to do so.
> I have a Menu bar..In the options If select the quit
> menu the form will 
> popup with Quit button and cancel button.
> If I tap the quit button..I need to quit the
> application..I want to go to 
> the home screen.
> I am calling StopApplication method when tap on the
> quit button..
> Stop application frees all the memory ,closes all
> forms , and closes all 
> data bases,stores preferences.
> But,If I tap the quit button ,I am seeing the Fatal
> alert:Invalid memory 
> chunck pointer.
> Can Anybody please help me what am i supposed to do
> to close the 
> application.
> My code looks like this..
>           case QuitButton:
>                 //InitialState();
>                  StopApplication();
>                 handled=true;
>                 break;
> Best Regards
> Padmini
> 
>
_________________________________________________________________
> FREE pop-up blocking with the new MSN Toolbar � get
> it now! 
> http://toolbar.msn.com/go/onm00200415ave/direct/01/
> 
> 
> -- 
> For information on using the Palm Developer Forums,
> or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/



        
                
__________________________________
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25�
http://photos.yahoo.com/ph/print_splash

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

Reply via email to