T
Tore Gylver
In one of my windows forms I have the following visual
basic code:
Dim FRM As New FormOrderQuit(SetOrderID)
Try
FRM.Show()
Catch Myexception As System.ApplicationException
MsgBox(Myexception.Message)
FRM.Close()
End Try
The code tries to show a form. If certain error
conditions occur the FormOrderQuit will throw an
ApplicationException. The codeline to throw the exception
is as follows:
Throw New System.ApplicationException
(BaseFormOrder_NoOrderReturned)
BaseFormOrder_NoOrderReturned is a Const containing a
string.
When I run the try-catch code above in Visual
Studio "with debugging" the catch-block runs as expected.
If I start the application in Visual Studio "without
debugging" the code in the catch-block is not run at all.
It seems like I miss something in my code to make this
work when debugging is switched off. Any help would be
appreciated.
Regards
Tore Gylver
basic code:
Dim FRM As New FormOrderQuit(SetOrderID)
Try
FRM.Show()
Catch Myexception As System.ApplicationException
MsgBox(Myexception.Message)
FRM.Close()
End Try
The code tries to show a form. If certain error
conditions occur the FormOrderQuit will throw an
ApplicationException. The codeline to throw the exception
is as follows:
Throw New System.ApplicationException
(BaseFormOrder_NoOrderReturned)
BaseFormOrder_NoOrderReturned is a Const containing a
string.
When I run the try-catch code above in Visual
Studio "with debugging" the catch-block runs as expected.
If I start the application in Visual Studio "without
debugging" the code in the catch-block is not run at all.
It seems like I miss something in my code to make this
work when debugging is switched off. Any help would be
appreciated.
Regards
Tore Gylver