Empty Exception

  • Thread starter Thread starter Enrico Bizzarri
  • Start date Start date
E

Enrico Bizzarri

Hi all,
in my app sometime in random position, i catch exceptions with empty
message. Then if i restart app (sometime i have to softreset the pda), the
exception disappear.

I've this issue in both pocketPc 2002 and WM2003, with a simply varString =
"ABC" or with more complicated tasks.

I use

Try
Catch ex as Exception
messagebox.show(ex.message.....................)
End Try

So the question is: why? There's some bug, i have misconfigurated? My code
need fixs?

TIA

Enrico
 
Whether there is a Message will depend on what raised the exception and
whether a message was supplied - it's not a required property. You will
probably find it useful to capture the type of the exception as well as the
message e.g.

ex.GetType().ToString()

Specific excpetion types might then have other properties which you want to
log such as error codes etc which will help determine the cause.

Peter
 
Back
Top