3
votes

I am facing a process hang problem while debugging in mixed mode C++/CLI with a native application. This is unbearable, almost 70% of my debugging this happens and I need to restart the process again and again.

Is there any hotfix or solution for this?

1
Did you check it under different conditions? Like does it do this when debugging other programs too? Does it hang at a particular point? Do you have enough memory? etc.jonsca
Enough memory available. it is not related with system resources. It is known issue with reported bug to MSFT regarding C++/CLI bugs.Usman
Oh, ok. Just trying to come up with things off of the top of my head. What does their bug report say to do about it?jonsca
VS2010 Service Pack 1 does not help with this?Chris O
Would you share the link to the reported bug?Matt Smith

1 Answers

1
votes

One thing to do is, from native code avoiding stepping into managed code. For me, that crashes my processes 100% of the time. Instead, place a breakpoint in the managed code that you want to get to. Debugging C++/CLI is awkward at best, usually flaky, though it is much improved over VS2008.

Not sure if you are running into this exact scenario.

EDIT: I have been having much better luck (in terms of stability) debugging C++/CLI on Win7, as compared with my WinXP dev machine.