I should have known better especially after writing so much hardware
exception handling in VC++. At the risk of asking another stupid
question.....Can you suggest a procedure or method of handling/trapping
these type of exceptions from the application?
"Ben Combee" <[EMAIL PROTECTED]> wrote in message
news:46329@palm-dev-forum...
>
> "OmniSoftSystems" <[EMAIL PROTECTED]> wrote in message
> news:46321@palm-dev-forum...
> >
> > Hello,
> >
> > Currently developing for Visor 3.1, Using try/catch blocks to find a
> bug,
> > but POSE intercepts and does not allow code to continue. I've looked
> at the
> > debug options, don't see options for exceptions. We can not find
> debug
> > versions of the ROMs, so how else can we detect exceptions.
> >
> > Example:
> > int x=5,y=0;
> > try {
> > x /= y; // force divide by zero
> > }
> > catch(...) {
> > ErrDisplay("Gotcha!");
> > }
> >
> > POSE intercepts this particular example at the "x/=y" statement.
>
> The problem is not with POSE, its with your code. Divide by 0 is not a
> C++ exception -- exceptions in CodeWarrior only catch exceptions thrown
> by a "throw" statement. VC++ on Windows supports this as an extension
> to C++ exception handling, but it is not required by the standard.
>
> --
> Ben Combee, [EMAIL PROTECTED]
> Techwood Broadcasting Foundation, Austin Bureau
>
>
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/