Re: A89: Crashing Program


[Prev][Next][Index][Thread]

Re: A89: Crashing Program




In a message dated 6/8/2000 5:55:09 PM Mountain Daylight Time, 
croop@oregontrail.net writes:

> As I am used to the TI-86, where you have to use right-back routines to
>  save any program information permanently, I was surprised and initially
>  confused when I found that programs run a second time retain information
>  variables from the first time.  Perhaps your program relies on a
>  variable being within a certain range or value at the start, and it is
>  modified when you run the program to completion.  Then when you start it
>  the second time, the variable is still the modified value, and causes a
>  crash?

So how would I prevent this?  Could I just set the variables at the end that 
I set them to at the beginning?  Or could I just put the static variables in 
the main loop?

Dan



Follow-Ups: