Catching non-UI threads' exceptions.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • BLUE

    Catching non-UI threads' exceptions.

    I'm using CF 1.x (VS 2003) on a Windows CE 4.2 device.

    This classes ad methods are not present:

    Application.Thr eadException
    ThreadException EventHandler
    Application.Set UnhandledExcept ionMode
    UnhandledExcept ionMode
    AppDomain.Curre ntDomain.Unhand ledException
    UnhandledExcept ionEventHandler

    How can I catch the exceptions throwns by threads I've created?
    I've to insert in each thread a try{ /*...*/} catch{}?
    If a thread creates another thread both should have try{ /*...*/} catch{}?


    Thanks,
    Luigi.


  • Carl Daniel [VC++ MVP]

    #2
    Re: Catching non-UI threads' exceptions.

    BLUE wrote:
    I'm using CF 1.x (VS 2003) on a Windows CE 4.2 device.
    >
    This classes ad methods are not present:
    >
    Application.Thr eadException
    ThreadException EventHandler
    Application.Set UnhandledExcept ionMode
    UnhandledExcept ionMode
    AppDomain.Curre ntDomain.Unhand ledException
    UnhandledExcept ionEventHandler
    >
    How can I catch the exceptions throwns by threads I've created?
    I've to insert in each thread a try{ /*...*/} catch{}?
    If a thread creates another thread both should have try{ /*...*/}
    catch{}?
    Yes - you need a try/catch around the internals of each thread that you
    create.

    -cd


    Comment

    Working...