Hi,
>When this code is executed based on .T. of the flag on exiting the application I generate a C0..05 but when this code is not executed (.F.) then no errors are generated.
The problem is the ScreenHook stuff. This is not really supposed to work, even though it made it unfortunately into the VFP documentation. If you use VFP 8, you can use BINDEVENTS() to bind to _Screen events.
--
Christof
--
Christof