Why are VS 11 slow button presses and how to fix them?

Here is a simple test application (in F #, but I checked and the same problem occurs in C #):

let but = new Button(Content = "click me") but.Click.Add(fun e -> printfn "clicked") [<STAThread>] do (new Application()).Run(new Window(Content = but)) 

When you run this in the VS 11 preview (no matter which version of .NET) the message "clicked" appears 0.5 seconds after clicking. The same thing happens in C #. When I go to the folder where the project is stored, and run .exe outside of VS, then the message appears immediately after clicking. Apparently, debugging hardware significantly slows down this particular case. Why is this and what can be done about this?

+7
source share
2 answers

I can’t say for sure, but my past experience with previewing developers is that they have control and tracking code that works and sends feedback to Microsoft. This caused a slowdown for me earlier in other previews (I don’t remember if the buttons were touched). You can send feedback to Microsoft, but in order to find out about it.

+4
source

Or ... I do not have VS v.11, but a similar error occurred in VS 2010.

Go to: Debug-> Options and Settings-> Debug-> General, select: "Break if exceptions intersect with AppDomain ...".

If the debugger stops on these exceptions, it means that the old error has not been fixed. This is a Visual Studio error, so everything works fine when running .exe.

+1
source

All Articles