My idea (based on recent experience :) is that the event queue is just fine, but
you have corrupted the stack. 

Try putting a breakpoint after the call to the AppStop function. Run your
program, but, instead of exiting it via the 'Kill' button on the debug window,
exit it by clicking on the 'Home' button of the silk screen. When you hit your
breakpoint, inspect the values on the stack in the stack window.

If you see garbage values in the stack window, your fatal alert is being
generated when you jump to that garbage via the rts instruction at the end of
your program. 

My guess is that your program corrupted the stack memory by writing through an
uninitialized pointer. Normally the CW compiler will warn you about this, but it
isn't that hard to write code that will confuse it into thinking your pointer
has been initialized when in fact it hasn't.

-- bob

On Mon, 4 Dec 2000 15:02:24 -0500 , you wrote:

>Hi all
>I am getting a fatal alert when i quit my application i tried all methods to
>flush teh event queue. i tried to flush before calling the appstop function
>as well as in the app stop function .. but it does not work.. any ideas what
>going on in here
>
>appreciate your help ver much'
>
>Vishal
>


-- 
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