Catching Runtime exceptions.

  • Thread starter Thread starter IdleBrain
  • Start date Start date
I

IdleBrain

Hello All:
I have a project deployed to a client.

The client reports me of a runtime exception occuring some times:
Arithmetic Overflow
It does not occur on my machine where I have the source code written.

I handle this exception by logging the Err.source, Err.Description and
Err.Erl into a text file.
But for some reason the error line is being logged as line zero which
doesnot help me to debug it.

How exactly do I know where and why that exception occurs?

Thanks in advance.
 
I think you'll find it easier to use the new Try/Catch exception method then
check the exception object. That has a StackTrace string that will give you
*very* detailed infromation on where the error happened. Or you can just use
the .ToString method - I think that also displays the stack trace.
 
Back
Top