I'm in putting exception handling in my app and need to know how to get the
system to throw exceptions.  I have a simple test segment:

    ErrTry
    {
       int den = 0;
       int num = 1;
       // ErrThrow(0);
       int inf = num/den;
    }
    ErrCatch (error)
    {
       FrmCustomAlert(WarningDialogAlert, "Error Caught", "", "");
    }
    ErrEndCatch;

I get a "fatal exception" error from the above code.  But, if I uncomment
the "ErrThrow(0)" line, then the throw works fine and my Custom Alert
appears.  Otherwise, the app just crashes.

How do I get the system to throw the fatal exceptions it catches?

Thanks!
Rich



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to