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

    Detecting a crash

    Hi All

    I have a program that controls a com port collection system, unfortuantly this Com program is a little buggy and crashes every so often.. Is there anyway for me to create a small App in VB.net that monitors this program and notifies me by mail when it has crashed?

    Any help is appreciated

    Cheers

    Dougie

  2. #2
    Join Date
    May 2002
    Posts
    10,943

    Re: Detecting a crash

    Why are you using "buggy" software? Changing that should be your primary goal.

    But, if you honestly don't want to go that route, can't you just check the process threads (EnumProcesses) to see if that application is still running?
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  3. #3
    Join Date
    Apr 2007
    Posts
    68

    Re: Detecting a crash

    Thats what I said about the prog too, we should just replace it, but I have been told that it would cost a fortune to replace and the cost does not justify the necessity to upgrade, the occasional crash is acceptable to the power to be..

    I thought about the EnumProcesses but it looks as though the process doesnt close until the dont send error log button has been clicked on the app.

    Cheers

    Dougie

  4. #4
    Join Date
    May 2002
    Posts
    10,943

    Re: Detecting a crash

    You could disable error reporting.
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  5. #5
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,284

    Re: Detecting a crash

    Dougie, I'd try to look for a thrid party application here to detect the crash.
    Try google :
    http://www.google.co.uk/search?q=det...&start=10&sa=N

    But, whoever told you that the occasional crash is acceptable, should really reconcider that.

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