Página 1 de 1

Logging Application Errors

Publicado: Lun May 28, 2007 2:39 pm
por Capsol Coder
Howdy
I have been reading the help and examining the sources and I'm trying to
work out how to make my application throw an error, write to the error.log
and then display the error form. (Just like when Xailer/Xharbour does
I have managed to throw an error and get the error form to appear, the
problem is the log isn't written, so I end up displaying whatever error
happened in my code, not the error I threw.
I have read the sources for errorsys.prg. They look like I can throw an
error, then pass the error object to the errorsys.
Can someone provide some guidance? I'm a bit lost
Nick

Logging Application Errors

Publicado: Lun May 28, 2007 3:21 pm
por notelo
Nick,
> I have read the sources for errorsys.prg. They look like I can throw an
> error, then pass the error object to the errorsys.
>
> Can someone provide some guidance? I'm a bit lost
In Errorsys.prg there is a function LogError() that does all the job of
logging. Also, you should do the error logging before evaluating the
errorblock (see line 95 of errorsys.prg)
Regards,
José Lalí­n