Re: UnhandledExceptionEventArgs

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Step into your code and see which line causes the exception to be thrown. That is the correct way of identifying the error in the absence of a StackTrace.

On the generic topic of global exception handling, there is no support for it for CF 1.0. For info see this:
http://www.danielmoth.com/Blog/2004/08/global-exception-handling-net-cf-v10.html


Cheers
Daniel
--
http://www.danielmoth.com/Blog/


"KM" <none@xxxxxxx> wrote in message news:%23I$e0UPNFHA.1396@xxxxxxxxxxxxxxxxxxxxxxx
Hi group

In "standard" .NET it´s possible to catch unhandled exception thru the
UnhandledExceptionEventArgs class. Is there a similar way with .NET
compact framework.

I´m currently developing a small appl for a pda, which connects to a
bluetooth GPS reciever. The communication between the program and the
reviever is handle by a dll found here: http://www.hardandsoftware.net/
If the reciever isn´t on, when I launch the program (from VS.NET) it
crashes with the following message:

An unhandled exception of type 'System.ArgumentNullException' occurred
in mscorlib.dll

ANy suggestion on how to catch this exception?

TIA
Kaare

.



Relevant Pages

  • Re: Exception Names
    ... Returning -1 or null to indicate the absence of a value is not 20th ... century C bullshit. ... The notion that an exception is a bad thing in Java is a useful norm. ... CharacterNotFoundException should be a checked exception? ...
    (comp.lang.java.programmer)
  • Re: Martha Byrne might be leaving...
    ... a teenager (with the exception of a three year absence from 1989-1993) ... I'm just sayin' is all... ...
    (rec.arts.tv.soaps.cbs)
  • Re: Martha Byrne might be leaving...
    ... Martha Byrne, who has played ATWT's signature heroine, Lily, since she was ... a teenager (with the exception of a three year absence from 1989-1993) ...
    (rec.arts.tv.soaps.cbs)
  • Re: MFC App nor handling std::exception
    ... You would have to show the code, and show your exception handler, so we could study what ... In the absence of an example that shows what code causes ... I have an MFC app using a few classes that solely use STL etc. ...
    (microsoft.public.vc.mfc)