Search code examples
c#windbgstack-tracedumpdmp

Using C# to retrieve stack from bluescreen dump file


I want to know if there is a way of using C# to open a Blue-screen crash dump + loading symbols, in order to retrieve the memory stack.

I know how to do it manually using the program windbg, So if there is a way to connect to Windbg using C# that might solve the problem as well.

Do anyone know how to extract the memory stack using C#, or to connect to Windbg using C#?

Thanks!


Solution

  • Thanks for your help, but i found a much easier way to use it... Since Windbg can be operated using cmd, it was pretty hard to find and understand the commands, but i managed to operate it using cmd.

    After that it is possible to send cmd commands from C#, so i simply sent the command using C#, and wrote the results to file using Windbg's -logo command.

    So by reading the file i could parse the results and extract the things that i want.

    Thanks for all the help!