good day to all.
i use my Net monitoring system developed in VFP at my net cafe for almost a year now, and so far it works fine. But there is a little problem that although it don't bothered the user and me but it much better if it does not shows-up.
When i shutdown the workstation or restart it from the server, before it will totally close there is sometimes that a VFP error message will pops-up, which will prompt to send the error to MS.
How could i prevent such error as if there is still missing in my shutdown code, clear events, clear dll's, etc and etc they've all there already.
it seems that the PC can't wait any longer to shutdown.
Thanks for any help regarding this matter

how to shutdown the OS without error
WaaZ
Doug Peck
That is your problem, in fact. You still have an open VFP application running with UNSAVED records and you want to shut the PC down. It gives you a warning that it is trying to close the app but cannot. Ctrl+Alt+Del will give you a Task Manager where you can find out which app is holding you back. It may be in background though, some sort of a bot or systems app which was invoked to support your work.
In my experience it is a feature of Win2K but not WinXP as the other poster said.
wms103006
Following up to Marcia's, you can find examples in:
Start VFP9, Tools->Task Pane. Choose Solution Samples, New in VFP9, “Binding to windows Message Events”
Calvin Hsia [MS] has good examples of binding to Windows events in his blog:
http://blogs.msdn.com/calvin_hsia/archive/2004/11/16/258422.aspx
Also examples in the book "What's new in VFP9"
http://foxcentral.net/microsoft/WhatsNewInVFP9_Chapter14.htm
HTH
13one
i put only at the server the control to shutdown the workstation or restart, through vfp program i install it in every workstation, that's where, there is sometimes that VFP error message will pops-up prompting to send error via internet to MS before it shutsdown or restart, although it's not a big problem, but it much better if it won't pops-up at all.
so i try your advice regarding BINDEVENT(), but as i try the sample, closing all open windows except my program, then trying to shutsdown the PC normally, there it was that end program message will pops-up, instead of one error message that will pop-ups now its two.
what can you say about that sir ..is it in my coding , that's the only little problem that keeps me wondering why.
Thank you very very much in advance for the explanation regarding this matter...have a nice day to all
MJMatthew
Thank you very much Alex & MarciaAkins for your help.
Have a nice day to all the experts...more power!
dean gross
i try the samples which will be found at solution.app at the task pane, but when I try to shutdown the PC, yes there was a message that pop-ups if i really want to end the windows session, but before i can select which of the two "Yes" or "No", there it was another that pops-up the end program message that totally shut's-down the PC, if you will not select which of the two option in a few seconds.
How could we prevent that end program message not to pops-ups , that only the message that prompt the user to select If you want to end the windows session Because it seems to me that it has a problem, if example you click the yes button to shutdown, and since you are very busy in you paper works and then you find out that you have still records waiting to be saved, and you did not select immediately the NO button to continue working, then that end program message pops-up and will automatically end your work in a few seconds. So what will happen. You will back again
Thank you
Kai Wang
In VFP 9, you can use BINDEVENT() to bind to windows message events. The one you want to bind to is power broadcast events.
TonyX852
could somebody experience this kind of error does VFP when running, trigger some dll that is not part of the application to run without our knowing
thank you for an explanation.
mistry_bhavin
I do have VFP 9.0 installed on two partitions. There is no file by the name "DW20EXE.DLL" anywhere in my system at all. You may try to post a message at VFP forum perhaps they could help. I just did a brief Google search and nothing came up on this file at all.
This may be a bot sitting somewhere in your directory. Locate the file if it is there and examine it with Dependency Walker or another lookup app.
Bradleyman
LSF
I think that what you really want to do here is that if you see that the user is trying to shut down the PC, before you allow this to happen, you mest exit your application gracefully by calling whatever routine you have to close all open forms and exit your app.