Click here to Skip to main content
15,942,710 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I converted 2 of my VS2008 solutions to VS2010 .NET 4 Client Framework. One solution is full managed (C#) and another is mixed.

Now my debugger works fine until object from extern dll or object from cpp project is referenced. Then application freezes.

If I choose Enable unmanaged code debugging then breakpoint is hit from extern dll (why?) and I can choose continue. But I cannot change code because unmanaged code debugging doesn't allow that.
With that option referencing cpp object still causes application to freeze.

If I start without debbuging (CTRL+F5) everything works fine! But i want to use debugger so I can change code while debugging.
Posted

1 solution

You can't change the code because you are in two separate environments, managed and unmanaged. Your main application thread, the one you are debugging, is a managed application and only has the references and debug symbols for the unmanaged code, it doesn't have the editor files.

Of course CTRL+F5 works because you are of course not using the debugger.
 
Share this answer
 
Comments
nihil007 6-Mar-12 4:26am    
Ok, I understand that.

But the same worked in VS2008. Application did not freeze in VS2008 when it comes on external dll. Just it stepped over and debugger worked on my code only. Now it freezes on extern dll.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900