c# - How to troubleshoot .NET 2.0 Error Reporting messages in the event log? -


I work on an open source product that is written in C #. Targeting the NET 2.0 platform, I have a user who is suffering a strange. NET crash, which we are unable to solve.

 Event Type: Error Event Source: .NET Runtime 2.0 Error Reporting Event Category: None Event ID: 5000 Date: 29/04/2009 Time: 10:58:10 PM User: N / A Computer : it removed Description: EventType clr20r3, P1 evemon.exe, P2 1.2.7.1301, P3 49 Iya 37 C8, P4 Sistmkvindokforms, p 5 2.0.0.0, p 6 48 9 8 DD 7, p 7 6 CD3, P818, P9 system.Regimate option, P10 Nile data: // Hex representation of the above description: 

The application returns an error Despite the well accidents (error handling UI to Shit), above messages was copied to the Windows event log. The end user has re-installed and has been updated to the latest versions. PDB files are distributed with each release version of the program for help in debugging and testing, the user with problem in question has a full complement of PDB files for the correct version of EVMon.

Is there a specific, tried and tested technique for analyzing and analyzing this kind of accident? And if so, are the tools and technologies available to help with debugging?

Special thanks

I want to give special thanks to Stephen Opel and I would like to highlight the fact that when I was asking not directly answer the question, my code base The big problem was addressed that an important component in dealing with global error is missing.

In this way, I will handle an end user with the problem for the accident.

  1. Download and install debugging tools for Windows

  2. Once the device is installed (they are C: \ programs Files \ Going by default) Start a command line window.

  3. Change to the directory that contains the adlusion (for example "C: \ program files \ debugging tools for windows (x86)").

  4. Run simulation command will launch this application and add the adlas.

adplus -crash -o C: \ debug \ Full Onfst-cc C: \ path \ to later create crash dumps \ / Code>

Once the app crashes, WinDbg starts and the .dmp file loads. : \ Debug (File -> open crash dump)

To view the stack trace, execute these commands and hopefully the problem will be found.

To load SOS for debugging

  • Pre .NET 4.0
  .loadby sos mscorwks  
  • .NET 4.0
 . Loadby sos clr  

to see the stack trace

 ! Clrstack  

to see a more useful stack trace

 ! Clrstack -p  

to strike inside an object. Possibly see what is the reason for the exception

 ! & Lt; Address & gt;  

For example, this is the result of an application that is randomly blamed with the IO exception. WinDbg was referring to the path that was referenced which was wrong.

  0: 009> ! Tax 017f2b7c Name: System.String MethodTable: 790fd8c4 EEClass: 790fd824 Size: 124 (0x7c) Bytes (C: \ WINDOWS \ Assembly \ GAC_32 \ mscorlib \ 2.0.0.0__b77a5c561934e089 \ mscorlib.dll) String: \\ server \ path \ not_here .txt fields: MT field offset type VT aTTR value name 79102290 4000096 4 System.Int32 1 example 54 m_arrayLength 79,102,290 4,000,097 8 System.Int32 1 example 53 m_stringLength 790ff328 4,000,098 c System.Char 1 example 5c m_firstChar 790fd8c4 4,000,099 10 System.String 0 Shared static blank & gt; & Gt; Domain: Price 00161df8: 790d884c & lt; & Lt; & Gt; 7912dd40 400009a14 System.Char [] 0 Fixed WhitespaceChars & gt; Domain: Price 00161df8: 014113e8 & lt; & Lt;  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -