VB.net 2005: Breakpoint in click event of button causes progr cras



Hi,

I have the problem in a larger project, however, even a simple windows
program like a hello world prog leads to the same problem:

In Visual Studio.net 2005 (+VS2005-SP1, + all update as far as
update.microsoft.com presents them) I created a new windows project in Visual
Basic. It has one form and the form has one button. The code of the form
reads:

Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
MessageBox.Show("Button has been clicked")
End Sub
End Class


It looks like a "hello world" program . When I compile it in debug mode
(with "Any CPU") and start it it shows the form with the button and a click
on the button shows the messagebox. So far everything works fine.

However, when I set a break point in the line >>MessageBox.Show("Button has
been clicked")<< and compile it in debug mode (with "Any CPU") and start the
prog, a click on the button does not start the debugger at the break point
(as I would expect), but rather causes a program crash with the message
"Test_Form.vshost.exe has detected a problem and must be quit." (this my
translation of the German message I get: "Test_Form.vshost.exe hat ein
Problem festgestellt und muss beendet werden."); "Test_Form" is the project
name and assembly name.

I recently switched from VS.net 2003 to VS.net 2005. I never had a problem
like this one in VS.net 2003.

What could cause the program crash? Help is very much welcome.

Michael

PS:

The SP1 (KB926606) is already installed. The details given by Visual
Studio.net 2005 are listed below. In addition I've installed "Security Update
für Microsoft Visual Studio 2005 Professional Edition - DEU (KB937061)".

- - - - -

Microsoft Visual Studio 2005
Version 8.0.50727.762 (SP.050727-7600)
Microsoft .NET Framework
Version 2.0.50727 SP1

Installierte Edition: Professional

Microsoft Visual Basic 2005 [...]
Microsoft Visual Basic 2005

Microsoft Visual C# 2005 [...]
Microsoft Visual C# 2005

Microsoft Visual C++ 2005 [...]
Microsoft Visual C++ 2005

Microsoft Visual J# 2005 [...]
Microsoft Visual J# 2005

Microsoft Visual Web Developer 2005 [...]
Microsoft Visual Web Developer 2005

Microsoft Web Application Projects 2005 [...]
Microsoft Web Application Projects 2005
Version 8.0.50727.762

Crystal Report [...]
Crystal Reports für Visual Studio 2005


Microsoft Visual Studio 2005 Professional Edition - DEU Service Pack 1
(KB926606)
Dies ist ein Service Pack für Microsoft Visual Studio 2005 Professional
Edition - DEU.
Wenn Sie zu einem späteren Zeitpunkt einen aktuelleren Service Pack
installieren, wird dieser Service Pack automatisch deinstalliert.
Weitere Informationen erhalten Sie unter
http://support.microsoft.com/kb/926606

Security Update für Microsoft Visual Studio 2005 Professional Edition - DEU
(KB937061)
Dies ist ein Security Update für Microsoft Visual Studio 2005 Professional
Edition - DEU.
Wenn Sie zu einem späteren Zeitpunkt einen aktuelleren Service Pack
installieren, wird dieser Security Update automatisch deinstalliert.
Weitere Informationen erhalten Sie unter
http://support.microsoft.com/kb/937061
.


Loading