J
JohnE
Have been given a task of what the boss called crash detection. This is an
A2007 front end and mssql2005 back end. Connection is dsn/odbc. What is
requested is to detect whether the user shut down the front end or an error
occured that caused the app (or user) to reopen the app after is shut down.
My first thought is that since a "crash" would break the connection between
the front and back, have a txt file write to the user's profile file on their
machine. Now, when the user reopen's the app, it checks to see if the txt
file exits. If it does, it now records info into a table on the backend,
deletes the file, then recreates it. If the user closes/shutsdown the app,
it will delete the file so there is no file there on the opening so the check
finds nothing, writes nothing to db, creates new txt file, and opens the app.
Has anyone done something like this before? If so, how? Any examples,
samples, links to sites will be appreciated.
Thanks....John
A2007 front end and mssql2005 back end. Connection is dsn/odbc. What is
requested is to detect whether the user shut down the front end or an error
occured that caused the app (or user) to reopen the app after is shut down.
My first thought is that since a "crash" would break the connection between
the front and back, have a txt file write to the user's profile file on their
machine. Now, when the user reopen's the app, it checks to see if the txt
file exits. If it does, it now records info into a table on the backend,
deletes the file, then recreates it. If the user closes/shutsdown the app,
it will delete the file so there is no file there on the opening so the check
finds nothing, writes nothing to db, creates new txt file, and opens the app.
Has anyone done something like this before? If so, how? Any examples,
samples, links to sites will be appreciated.
Thanks....John