FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour error.log
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM
error.log
Posted: Thu Nov 17, 2005 11:12 AM

Stack Calls

Called from REF_VAR(938)
Called from EDITSCHE(93)
Called from VAL_REL2(380)

is it possibile to add "in module <nameofprgfile> ? " information for each row
?

Marco Boschi
info@marcoboschi.it
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: error.log
Posted: Thu Nov 17, 2005 12:29 PM

I agree. It would be useful.

EMG

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
error.log
Posted: Sat Nov 19, 2005 08:14 AM
Marco, Enrico,

Please modify source\function\errsysw.prg with this code:

       if ! Empty(ProcName( n ) )
             AAdd( aStack, "   Called from: " + ProcFile( n ) + " => " + Trim( ProcName( n ) ) + ;
                           "(" + NTRIM( ProcLine( n ) ) + ")" )
             cErrorLog += ATail( aStack ) + CRLF
          endif


Notice the use of ProcFile(). Warning: with Harbour it returns an empty string. With xharbour you get the PRG name.
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM
error.log
Posted: Mon Nov 21, 2005 09:35 AM

OK ThankYou very much.

:D

Marco Boschi
info@marcoboschi.it
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
error.log
Posted: Mon Nov 21, 2005 10:25 AM

Unfortunately it seems not working as expected... :-(

EMG

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
error.log
Posted: Mon Nov 21, 2005 12:49 PM

Enrico,

But that may be something specific to Harbour/xHarbour ProcLine() function.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM

Continue the discussion