Click here to Skip to main content
16,005,467 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionhow to show image during saving data? Pin
samrat.net1-Apr-08 2:13
samrat.net1-Apr-08 2:13 
AnswerRe: how to show image during saving data? Pin
Aks 0051-Apr-08 2:48
Aks 0051-Apr-08 2:48 
GeneralRe: how to show image during saving data? Pin
samrat.net1-Apr-08 3:08
samrat.net1-Apr-08 3:08 
GeneralRe: how to show image during saving data? Pin
Luc Pattyn1-Apr-08 3:26
sitebuilderLuc Pattyn1-Apr-08 3:26 
QuestionRun-time error '424' Object required Pin
nilam24771-Apr-08 1:02
nilam24771-Apr-08 1:02 
GeneralRe: Run-time error '424' Object required Pin
Dave Kreskowiak2-Apr-08 3:23
mveDave Kreskowiak2-Apr-08 3:23 
Generalconnecting two machines using sun orb and iiop.net not working Pin
srikar5851-Apr-08 0:22
srikar5851-Apr-08 0:22 
GeneralVS.net 2005 (VB.net 2005): Breakpoint in click event of button causes programm crash Pin
mp00011-Apr-08 0:02
mp00011-Apr-08 0:02 
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 Smile | :) . 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
GeneralRe: VS.net 2005 (VB.net 2005): Breakpoint in click event of button causes programm crash Pin
Dave Kreskowiak4-Apr-08 5:20
mveDave Kreskowiak4-Apr-08 5:20 
GeneralRe: VS.net 2005 (VB.net 2005): Breakpoint in click event of button causes programm crash Pin
mp00014-Apr-08 6:20
mp00014-Apr-08 6:20 
GeneralRe: VS.net 2005 (VB.net 2005): Breakpoint in click event of button causes programm crash Pin
Dave Kreskowiak4-Apr-08 8:42
mveDave Kreskowiak4-Apr-08 8:42 
GeneralRe: VS.net 2005 (VB.net 2005): Breakpoint in click event of button causes programm crash Pin
mp00014-Apr-08 10:05
mp00014-Apr-08 10:05 
GeneralRe: VS.net 2005 (VB.net 2005): Breakpoint in click event of button causes programm crash Pin
mp00016-Apr-08 21:55
mp00016-Apr-08 21:55 
Questionhow to increase timeout expire value in windows application(using C#)? Pin
samrat.net31-Mar-08 21:41
samrat.net31-Mar-08 21:41 
AnswerRe: how to increase timeout expire value in windows application(using C#)? Pin
Ashfield31-Mar-08 21:50
Ashfield31-Mar-08 21:50 
GeneralRe: how to increase timeout expire value in windows application(using C#)? Pin
samrat.net31-Mar-08 21:57
samrat.net31-Mar-08 21:57 
GeneralRe: how to increase timeout expire value in windows application(using C#)? Pin
Colin Angus Mackay31-Mar-08 23:41
Colin Angus Mackay31-Mar-08 23:41 
GeneralRe: how to increase timeout expire value in windows application(using C#)? Pin
samrat.net1-Apr-08 1:24
samrat.net1-Apr-08 1:24 
GeneralSMTP vrs Proxy server Pin
plural31-Mar-08 21:10
plural31-Mar-08 21:10 
GeneralRe: SMTP vrs Proxy server Pin
Dave Kreskowiak1-Apr-08 10:29
mveDave Kreskowiak1-Apr-08 10:29 
Questionhow to identify tab key press in vb.net Pin
codelinks31-Mar-08 20:56
codelinks31-Mar-08 20:56 
AnswerRe: how to identify tab key press in vb.net Pin
christoph3331-Mar-08 22:20
christoph3331-Mar-08 22:20 
QuestionHow to create Pdf in windows application? Pin
Piyush Vardhan Singh31-Mar-08 19:18
Piyush Vardhan Singh31-Mar-08 19:18 
AnswerRe: How to create Pdf in windows application? Pin
Mitch F.31-Mar-08 20:16
Mitch F.31-Mar-08 20:16 
GeneralRe: How to create Pdf in windows application? Pin
Piyush Vardhan Singh31-Mar-08 23:19
Piyush Vardhan Singh31-Mar-08 23:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.