Thanks Tracy.
In your error routine, you could check the Stack to determine if you were in
the ShutDown process.
Yes, my error log gets everything from ASTACKINFO(). So I know it's in my
application's shut down process when this happens. What I don't know,
unless a user tells me, is whether:
A. The user shut the program down and went on to do other things on the
computer, or
B. The user shut the program down and then immediately shut Windows down, or
C. The user shut Windows down without first shutting my program down.
Users frequently do not report these crashes to me. I only find out about
them if somebody can't log into the system because the semaphore file the
system creates to keep people from logging in during the auto-backup
process doesn't get deleted because the system crashed.
Since your data is stored on a server, and you want to make a backup.
Perhaps you can send a request to the server machine through a Windows
Service. If the machine that is hosting the data is not Windows, I'm not
sure where to point you. Perhaps just an http request. Most likely something
could be spun up even in apache to archive the databases.
I use a Linux server for the data and I have redundant backup processes: an
automatic one that backs up everything on that server to a removable drive
on another server at "zero dark thirty" daily, and a manual one that I do
every day where I copy the data to a thumb drive.
The automatic on-logout backup just copies the data from one folder to
another on the same server. I could eliminate it, and have been thinking
about doing so because as the amount of data stored increases, it takes
longer and longer.
But..
It's not only the backup process that figures in here. The problem can
occur during the process that updates my login/logout audit table, or while
saving data displayed in windows that are being closed. I've seen "File
does not exist" errors, with VFP looking in CURDIR() for files that are on
the network share, occasionally during both of these processes, which are
also called by my ON SHUTDOWN routine.
Ken Dibble
www.stic-cil.org
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/5.2.1.1.1.20130401131448.01c76...@pop-server.stny.rr.com
** 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.