|
-
Jul 6th, 2007, 12:34 AM
#1
Thread Starter
Fanatic Member
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
-
Jul 6th, 2007, 01:53 AM
#2
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
-
Jul 6th, 2007, 01:58 AM
#3
PowerPoster
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
-
Jul 6th, 2007, 02:05 AM
#4
Re: System error reporting
Are you talking about Event Logs from Event Viewer??
-
Jul 6th, 2007, 02:19 AM
#5
Thread Starter
Fanatic Member
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
-
Jul 6th, 2007, 07:05 AM
#6
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:
foreach (System.Diagnostics.EventLog log in System.Diagnostics.EventLog.GetEventLogs())
{
listBox1.Items.Add("--" + log.LogDisplayName + "--");
for (int i = 0; i < log.Entries.Count; i++)
{
listBox1.Items.Add(log.Entries[i].Message);
}
}
Last edited by Atheist; Jul 6th, 2007 at 07:11 AM.
-
Jul 7th, 2007, 02:20 AM
#7
Thread Starter
Fanatic Member
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
-
Jul 8th, 2007, 10:18 PM
#8
PowerPoster
Re: System error reporting
 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
-
Jul 8th, 2007, 11:24 PM
#9
Thread Starter
Fanatic Member
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,
-
Jul 8th, 2007, 11:25 PM
#10
PowerPoster
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|