Tags: WinDbg

Find method parameters with WinDbg

WinDbg Benjamin Perkins

I wrote this article, see the bottom where I do the memory dump analysis and wanted to expand on it some. Simply, if you are running managed code then you can decompile the source and see what the value of the Int32 passed to the Sleep() method, Figure 1.  I explained how to save the […]

Read More →

Object reference not set to an instance of an object

Debugging Benjamin Perkins

Just documenting something I did today.  I was receiving the error shown in Figure 1. “??? has encountered an unexpected error:  The requested action could not be completed.  Details:  Object reference not set to an instances of an object.” Figure 1, Object reference not set to an instances of an object exception I needed to […]

Read More →

Capture a StackOverflowException and make a dump 0xc00000fd

WinDbg Benjamin Perkins

I read in this article that “Starting with the .NET Framework 2.0, you can’t catch a StackOverflowException object with a try/catch block, and the corresponding process is terminated by default. Consequently, you should write your code to detect and prevent a stack overflow.”  That is the reason why the following code was crashing my process […]

Read More →

What do C# values look like in WinDbg

WinDbg Benjamin Perkins

One of the important areas you need to master when analyzing memory dumps is to recognize patterns that are normal and not normal.  You can only come to those conclusions after looking at many, many, many, many memory dumps and either remembering or taking notes on how a process looks when all is ok, so […]

Read More →

MEX Debugging Extension for WinDbg

WinDbg Benjamin Perkins

This has been my favorite WinDbg extension for a long time and I am very happy to see that it has been made public. It can be downloaded from here. To load the MEX extension, copy the MEX.DLL into the winext directory under which your WinDbg client is running. It can be placed any where […]

Read More →