Click here to Skip to main content
13,199,669 members (71,941 online)
Rate this:
Please Sign up or sign in to vote.
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 5-Mar-12 3:53am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 2

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.
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.171020.1 | Last Updated 6 Mar 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100