RE: Systems hangs on debugging unmanaged C++.Net

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Ellen Mausheimer (EllenMausheimer_at_discussions.microsoft.com)
Date: 07/14/04


Date: Wed, 14 Jul 2004 13:30:03 -0700

Some more hints I forgot to post:

- Ctrl-F5 works fine
- Norton Antivirus is disabled
- debugging C#/Asp.Net works fine
- I suspect some memory/stack errors in my applications, as we had this problem before - although at that time the debugger cought the excepions
- the debugger sometimes (seldom, but allways at the same points) also shows corrupted variable values.
e.g.: I have a local variable "int mTmp". If I read the value with the debugger (direct window or mouseover) it show "0" although the value is different. The program itself knows the correct values..

-- 
Ellen Mausheimer
"Ellen Mausheimer" wrote:
> I have a multithreaded, unmanaged C++ application that I want to debug on VS.Net 2003.
> 
> After starting the debugger I can step through some breakpoints until at some time the whole system hangs with 100% CPU usage. I cannot stop the debugger and cant even get the task manager running to stop the devenv process. (Task manager pops up on ctrl-alt-del but only allows to shut down the system)
> 
> It is quite a while since I opened the project. In the meantime I switched my system from W2K to XP, although Im not sure that´t the reason as somebody else 
> in our team has made some changes to the project during my switch.
> 
> Here some hints:
> - the problem doesn´t allways occur and not allways at the same time
> - it sometimes occurs before the first tread is spawned
> - I tried mixed as well as unmanaged debugging
> 
> Any hints?
>  
> -- 
> Ellen Mausheimer


Relevant Pages