Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# VS2010
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
good
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.
  Permalink  
Comments
nihil007 at 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
0 OriginalGriff 255
1 Sergey Alexandrovich Kryukov 150
2 BotCar 105
3 Richard MacCutchan 100
4 ChauhanAjay 95
0 Sergey Alexandrovich Kryukov 9,056
1 OriginalGriff 8,041
2 CPallini 2,613
3 Richard MacCutchan 2,221
4 Abhinav S 1,928


Advertise | Privacy | Mobile
Web01 | 2.8.140827.1 | Last Updated 6 Mar 2012
Copyright © CodeProject, 1999-2014
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