Results 1 to 10 of 10

Thread: System error reporting

  1. #1

    Thread Starter
    Fanatic Member vijy's Avatar
    Join Date
    May 2007
    Location
    India
    Posts
    548

    Thumbs up System error reporting

    Hi all,
    I have to retrieve the System error reporting from System information.
    In C#, i need this.
    Pls very urgent requirement..
    Give some idea to do this

    Vijay S

  2. #2
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: System error reporting

    When you need help in something. You should explain it!!
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  3. #3
    PowerPoster eranga262154's Avatar
    Join Date
    Jun 2006
    Posts
    2,201

    Re: System error reporting


    Where is your question.
    “victory breeds hatred, the defeated live in pain; happily the peaceful live giving up victory and defeat” - Gautama Buddha

  4. #4
    Smitten by reality Harsh Gupta's Avatar
    Join Date
    Feb 2005
    Posts
    2,938

    Re: System error reporting

    Are you talking about Event Logs from Event Viewer??
    Show Appreciation. Rate Posts.

  5. #5

    Thread Starter
    Fanatic Member vijy's Avatar
    Join Date
    May 2007
    Location
    India
    Posts
    548

    Thumbs up Re: System error reporting

    hi,
    Msinfo32/software environment/ Windows error reporting.
    In WER there some common error's are recorded which occured in system,

    I have to retreive those details and to display in a listView.
    (Sorry for not giving enough information).I hope now u all understood What i need?


    Thanks...

    Vijay S

  6. #6
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: System error reporting

    Heres a very simple example on retrieving logs from the eventlog. You have to run the application as an administrator though.

    C# Code:
    1. foreach (System.Diagnostics.EventLog log in System.Diagnostics.EventLog.GetEventLogs())
    2.             {
    3.                 listBox1.Items.Add("--" + log.LogDisplayName + "--");
    4.                 for (int i = 0; i < log.Entries.Count; i++)
    5.                 {
    6.                     listBox1.Items.Add(log.Entries[i].Message);
    7.                 }
    8.             }
    Last edited by Atheist; Jul 6th, 2007 at 07:11 AM.
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  7. #7

    Thread Starter
    Fanatic Member vijy's Avatar
    Join Date
    May 2007
    Location
    India
    Posts
    548

    Thumbs up Re: System error reporting

    Ya i check the above code,its working.Thanks.....

    In eventLog user can clear the log information.So i have to retrieve information from SYSTEM INFORMATION only.

    Thanks and Regards,

    Vijay S

  8. #8
    PowerPoster eranga262154's Avatar
    Join Date
    Jun 2006
    Posts
    2,201

    Re: System error reporting

    Quote Originally Posted by Atheist
    You have to run the application as an administrator though.
    Why is that, any special reason.
    “victory breeds hatred, the defeated live in pain; happily the peaceful live giving up victory and defeat” - Gautama Buddha

  9. #9

    Thread Starter
    Fanatic Member vijy's Avatar
    Join Date
    May 2007
    Location
    India
    Posts
    548

    Re: System error reporting

    We cant able to clear the information on msinfo32.This information will keep track of particular errors.
    In my requirement i need this.. Client too expecting Msinfo information only,

  10. #10
    PowerPoster eranga262154's Avatar
    Join Date
    Jun 2006
    Posts
    2,201

    Re: System error reporting

    Ok, I got the point. Thanks.
    “victory breeds hatred, the defeated live in pain; happily the peaceful live giving up victory and defeat” - Gautama Buddha

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