DevStudio 2010 "hangs" after each mouse-clicks when debugging C# code in a mixed C++/C# application

117 Views Asked by At

I started having this (weird) problem recently. My application uses both C++ and C#, and I've been able to debug and step through the code in either my C++ Dlls or my C# assemblies.

For some reason, I can't put braeakpoints in my C# code anymore, because I'm unable to use the mouse once the breakpoint is reached. Clicking anywhere (in windows 7) seems to hang the entire O.S. for a few seconds, with a small-green-progress-bar filling up slowly where the mouse is located. When I get control of the mouse again, it's as though I did not click anywhere. I can't click "stop debug", I can't click applications in the Windows Taskbar, I can't do anything with the mouse (except hang the system for a few seconds).

Only when I hit F5 (continue the execution of the code) and the application runs again, then I can use the mouse.

Note #1: this problem also happens if I "attach to process" Note #2: this doesn't happen when I debug in C++.

Any ideas? I realize this is a "vague" question about a "vague" problem... but any help would be appreciated at this point.

Thank you.

0

There are 0 best solutions below