Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Immediate Window .load sos.dll doesn't work

I am using Visual Studio 2015 Update 1 Immediate Window to see some objects' memory layout.

First, I created a Console Application Project and changed the Project Properties: checked the Enable native code debugging check box at the Debug tag. Second, I checked Tools → Options → Debugging → Use Managed Compatibility Mode. At last, I typed load sos.dll in the Immediate Window, after a while I get this output like this:

Error during command: Warning. Extension is using a callback which Visual Studio does not implement.

Error during command: Exception c0000005 occurred at 2A667BA6

I really don't know how to solve this problem and what is the meaning...

like image 938
Scarface Avatar asked Mar 09 '16 02:03

Scarface


People also ask

How do I get immediate window in Visual Studio?

On the Debug menu, choose Windows > Immediate.

Is there an immediate window in Visual Studio code?

There is no Immediate Window unlike Visual Studio in VSCode. But you can still execute Javascript in VSCode. Open the JavaScript file in VSCode, then use shortcut Ctrl + Alt + N , the code will run and the output will be shown in the Output Window.

Where can I find SOS DLL?

You can find it in C:\WINDOWS\Microsoft.NET\Framework\v4. 0.30319\sos. dll path. To get SOS automatically downloaded you need to have the Microsoft symbol servers set up in the _NT_SYMBOL_PATH environment variable.


1 Answers

I've recently got the same exact error message. It seems that Visual Studio tries to load wrong SOS.dll by default.

I loaded an earlier version of this dll, and now it works fine. Try this:

.load C:\Windows\Microsoft.NET\Framework\v2.0.50727\sos.dll

If this folder not exist in your machine, try another version, which is available.

Hope this helps.

like image 181
kb00 Avatar answered Nov 15 '22 11:11

kb00