Board index » delphi » Getting Error Information

Getting Error Information

I'm trying to modify the "error system" to allow me to log errors to a file.
I need to get certain information to write to the file.  The main
information I want to get is the procedure (and line # if possible) where
the error occurred.  Is there a way to get this while the program is
running?  If not, is there a way to get an address that I can track back to
the procedure/line?  I've tried on several occassions to use an address
provided by an error message to look for a procedure/line using the
Search/Find Error option, but it always comes back with "error not found."
(or something to that affect).

Thanks,
Jesse

 

Re:Getting Error Information


In article <6u5v30$mf...@news5.ispnews.com>, D...@iThink.net says...

Quote

>I'm trying to modify the "error system" to allow me to log errors to a file.
>I need to get certain information to write to the file.  The main
>information I want to get is the procedure (and line # if possible) where
>the error occurred.  Is there a way to get this while the program is
>running?  If not, is there a way to get an address that I can track back to
>the procedure/line?  I've tried on several occassions to use an address
>provided by an error message to look for a procedure/line using the
>Search/Find Error option, but it always comes back with "error not found."
>(or something to that affect).

>Thanks,
>Jesse

I think you must create a map file, and doublecheck the error address with the
procedure at that address (at least something along these lines, haven't done
it myself).

--
Christo Crause
Thermal Separations Research
University of Stellenbosch
South Africa

Other Threads