473,386 Members | 2,129 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Error handling not working???

i was wondering why i never get to see my message box. when i break on the
message box, and try to examine the ex.message, it says

" ex.Message 'ex.Message' is not declared or the module containing it is not
loaded in the debugging session. "
why doesn't this code work?????

================================================== ========

try

...<code that breaks>

Catch ex As Exception

MessageBox ("error occured: " & ex.Message)

End Try

================================================== ========

thanks in advance!

george hardy


Jul 24 '07 #1
3 1550
"George Hardy" <no****@nospam.comschrieb:
>i was wondering why i never get to see my message box. when i break on the
message box, and try to examine the ex.message, it says

" ex.Message 'ex.Message' is not declared or the module containing it is
not
loaded in the debugging session. "
This works just fine on my VS 2005 Team Suite SP1 on Windows XP Professional
SP2. Which version are you using?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Jul 24 '07 #2
same stuff....
xpProSP2,
VS2005pro sp1

it's wierd, it wont even display the message box in the catch...just skips
over it.

george

"Herfried K. Wagner [MVP]" <hi***************@gmx.atwrote in message
news:eZ**************@TK2MSFTNGP04.phx.gbl...
"George Hardy" <no****@nospam.comschrieb:
>>i was wondering why i never get to see my message box. when i break on
the
message box, and try to examine the ex.message, it says

" ex.Message 'ex.Message' is not declared or the module containing it is
not
loaded in the debugging session. "

This works just fine on my VS 2005 Team Suite SP1 on Windows XP
Professional
SP2. Which version are you using?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Jul 24 '07 #3


"George Hardy" <no****@nospam.comwrote in message
news:ef**************@TK2MSFTNGP03.phx.gbl...
same stuff....
xpProSP2,
VS2005pro sp1

it's wierd, it wont even display the message box in the catch...just skips
over it.

george

"Herfried K. Wagner [MVP]" <hi***************@gmx.atwrote in message
news:eZ**************@TK2MSFTNGP04.phx.gbl...
>"George Hardy" <no****@nospam.comschrieb:
>>>i was wondering why i never get to see my message box. when i break on
the
message box, and try to examine the ex.message, it says

" ex.Message 'ex.Message' is not declared or the module containing it is
not
loaded in the debugging session. "

This works just fine on my VS 2005 Team Suite SP1 on Windows XP
Professional
SP2. Which version are you using?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

It sounds as though you started a debug session or such without compiling
modified code...so it breaks on a line where the code has changed, but
hasn't yet compiled....

Although, I've seen weird stuff in the debugger as well and won't go as far
as saying this isn't a bug anyways :)

HTH,
Mythran
Jul 24 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Wayno | last post by:
My php logs are coming up empty. I have done all I can think of, and all that made sense to me. Can someone take a look at my php.ini please and tell me what you think may be the problem. I...
6
by: Squirrel | last post by:
I have a command button on a subform to delete a record. The only statement in the subroutine is: DoCmd.RunCommand acCmdDeleteRecord The subform's recordsource is "select * from tblVisit order...
1
by: michaeltorus | last post by:
Hi I'm currently designing a new web application in .Net. I've pretty covered everything, apart from error handling. There seems to be a few different way to do this, but something I've read...
3
by: Mr Newbie | last post by:
I'm testing error handling configurations and having some trouble. I created a WebForm called. ErrDefault.aspx and I am trying to use the Page error attribute to force the redirection to a custom...
9
by: Gustaf | last post by:
I'm confused about structured error handling. The following piece of code is a simplification of a class library I'm working on. It works, and it does what I want, but I'm still not convinced that...
10
by: Anthony England | last post by:
(sorry for the likely repost, but it is still not showing on my news server and after that much typing, I don't want to lose it) I am considering general error handling routines and have...
4
by: DavideR | last post by:
I have converted a large vb6 program with an add-in that for every routine gimme the error handling: the add-in adds one line on the head of the routine "if myerrhandle then ON ERROR GOTO...
2
by: tshad | last post by:
This has been driving me crazy. I have been trying to get the error handling working on my system and can get parts of it working and others won't work at all. I found that you can't access...
0
by: dhyder | last post by:
I'm working on an admin page for a SQL Server 05 db. The page is in ASP.NET 2.0/C#. The db has multiple tables with foreign keys/constraints. I have multiple SqlDataSources and GridViews, which...
9
by: Trapulo | last post by:
Hello, with ASP.NET 2.0 Ajax every unexpected error is managed client-side with a popup that reports the error to the user. In ASP.NET 3.5 this behavor has been changed: how can I have a similar...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.