There are times that none of these suggestions will work. Someone in this list posted the solution some time ago. I have been using it since. What you need is to compile these 2 lines of code:
Declare ExitProcess in Win32API Long ExitProcess(1) What I did is put the resulting file named: quitnow.fxp in c:\temp Then when you get that message and have no way out, type do c:\temp\quitnow in the command window. This will always work. At least I have never seen it fail. ----- Original Message ----- From: "MB Software Solutions,LLC" <[EMAIL PROTECTED]> To: "ProFox Email List" <[email protected]> Sent: Wednesday, October 29, 2008 5:08 AM Subject: Re: VFP9-Shut routine Sytze de Boer wrote: > I'm obviously getting too old for this > > In my error routine, I do a bunch of things, but I offer the client to > "simply quit the program" > It goes like this > > on shutdown > clear events > close data > quit > > It gives me Cannot quit Visual Foxpro > > I cannot figure why > Please help me out Sounds like a modal state left somewhere. CLEAR EVENTS? [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

