>SITUATION:
>==========
>My application has a single formset with a timer on it that checks
>data files periodically.
>
>Periodically, the Timer decides that the application should shut down,
>and tries to terminate the application.
>
>PROBLEM:
>========
>If the timer RELEASEs the application or even calls CLEAR EVENTS to
>try and let the application release itself, VFP GPFs. HOWEVER, VFP
>does not GPF and DOES exit properly when running as an EXE from inside
>of the Visual Foxpro Environment.
>
>HELP?
>
>pol@ix.netcom.com
Try to cleanup the problem.
1. Do you include READ EVENTS command? If your formset is Modal you actually don't need in READ EVENTS.
2. How do you Release? It's better first Release Thisformset and then Clear Events.
3. It's also safe to 'back' timer before you release:
ThisTimer.enabled=.f.
release thisformset
Edward Pikman
Independent Consultant