jkelsch

Whenever my code encounters an error, I get a

"WindowsApplication1.vshost.exe has encountered a problem and needs to close." message, Instead of breaking into the line of code that has the Error.

Any Ideas

Thanks



Re: Visual Studio Debugger WindowsApplication1.vshost.exe has encountered a problem and needs to close.

Azeem Khan - MSFT

Try disabling the hosting process. To disable the hosting process you need to go to Project Properties and to the Debug tab and uncheck "Enable the Visual Studio hosting process". This should allow you to debug your application. HTH.

Azeem Khan

Visual Studio Debugger.





Re: Visual Studio Debugger WindowsApplication1.vshost.exe has encountered a problem and needs to close.

Mardoek

Have the same error, and disabled the VShost proces, but then the main application crashes, without jumping to the sourcecode. I never had this problem until the installation of sp1.





Re: Visual Studio Debugger WindowsApplication1.vshost.exe has encountered a problem and needs to close.

Azeem Khan - MSFT

Hi,

By main application crashes I assume you mean the debuggee is crashing. You will need to investigate why it is crashing in that case. You can start by enabling stopping on all managed exceptions. Note that some of them may be handled and may not contribute to application tear down. You can continue from these and look at the next one. Hope that helps.

Azeem Khan

VS Debugger





Re: Visual Studio Debugger WindowsApplication1.vshost.exe has encountered a problem and needs to close.

Alpedk

Hello

I have the same problem as jkelsch, and I have tried to uncheck "Enable the Visual studio hosting process", but when I do this I get the following message:

Internal Error:
Unhandled exception in Debugger::HandleIPCEvent.
Event ID=0x205.
Exception code=0x0000005, Eip=0x7a05c98b.
Process ID=0xab8(2744), Thread ID=0x974(2420)

And after that, I get the WindowsApplication1.vshost.exe has encountered a problem and needs to close.
Just before this error, I can se the debugger has stopped at my breakpoint with the yellow line where the breakpoint is(Just a short second, and then the vshost.exe message).

I get this both with All managed exception enabled and when I reset all exception.

I have another machine where it works fine, and I can se there is a difference in the installed products (About menu).

The machine where it works fine, has Microsoft Visual C# 77626-009-0000007-41328
and the machine where it don't work has the number :77626-009-0000007-41670.

I don't know if it's the newer build number, but Is there anyone who knows what to do







Re: Visual Studio Debugger WindowsApplication1.vshost.exe has encountered a problem and needs to close.

The Virtual Man

I had this problem after I had installed iolo System Mechanic.

Open the crash technical details and inspect the loaded modules for the presence of a third party driver that might be causing the issue.





Re: Visual Studio Debugger WindowsApplication1.vshost.exe has encountered a problem and needs to close.

Alpedk

Thank you

It was the problem and It solves another problem as I have with debugging property's