CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2007
    Posts
    68

    Detecting a Program Crash

    Hi All

    I have an Access 2007 database that runs constantly, the form on the database basically runs a timer every 10 seconds and runs a Macro. The problem I have is that when the backups run at night the network connection the database is on disconnects for the backup, so the database crashes with the error.

    "Your Network Access was interrupted. To continue, close this database, and then open it again."

    What I would like to do is create a small VB Application that runs on the machine that the database runs on, detects when the database has a problem, closes down the database process then restarts the database.

    Is this possible? If so any help would be appreciated.

    Regards

    Douglas Bell

  2. #2
    Join Date
    Sep 2000
    Location
    FL
    Posts
    1,452

    Re: Detecting a Program Crash

    I would suggest another method. Since you are running a timer, get the time and shutdown the DB before backup starts. Then use the windows scheduler to start the DB up again at a specified time after the backup has run.

  3. #3
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: Detecting a Program Crash

    Use TASK SCHEDULER to start/stop your app. It can be automated.
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured