A C5 error is a GPF. There are many things that can cause it. It could be a dangling reference to an object. (Make sure you release all objects when you close a form, etc). It could also be as simple a thing as a corrupt FoxUser table. That's where I'd start. Delete FoxUser.* and run the app again.
>In an application, in the first form (a top level form with the close button
>enabled).
>In this form I have a menu when I select an option I call another form (in a top level form) with some buttons, in one of these i have on the click event
>this code ....
> doevents()
> if (exception condition)
> exit
> endif
>..............
>In this moment i click the close button on the top level form and the error
>message appear "Fatal error Exception code=C0000005".
>How can I fix it ?
>Thanks
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer