Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VFP application blocking Win2K from shutting down

Status
Not open for further replies.

sharbin

Programmer
Jan 16, 2007
3
CA
Hi all,

Upon shutting down Win2K while my VFP6 application is running, Win2K is able to close the application but unable from continuing the shut down process.

Any ideas on how to ractify that?

thanks

 
just for the heck of it
do you have an on shutdown command in your code and if so what is it

like

on shutdown do something.prg

Steve Bowman
Independent Technology, Inc.
CA, USA
 
I did a test application that has only one file "main.prg" in it with the following lines and made it as the startup program in the project, and then built the exe:

"main.prg"

ON SHUTDOWN CLEAR EVENTS

READ EVENTS
ON SHUTDOWN
CLEAR ALL
RETURN

Run the application and then try to logoff. Windows will close the application but would not proceed with the logoff process.
 
That fixed the problem. I was under the impression that Foxpro would resume after the Read Events when clear events is issued.

But anyway that worked perfectly.

Many thanks

Salim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top