error.log

error.log

Postby MarcoBoschi » 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
?
User avatar
MarcoBoschi
 
Posts: 1065
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy

Re: error.log

Postby Enrico Maria Giordano » Thu Nov 17, 2005 12:29 pm

I agree. It would be useful.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Antonio Linares » Sat Nov 19, 2005 8:14 am

Marco, Enrico,

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

Code: Select all  Expand view
       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
User avatar
Antonio Linares
Site Admin
 
Posts: 42080
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Enrico Maria Giordano » Sat Nov 19, 2005 11:07 am

Wonderful! Thank you!

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby MarcoBoschi » Mon Nov 21, 2005 9:35 am

:D OK ThankYou very much.
User avatar
MarcoBoschi
 
Posts: 1065
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy

Postby Enrico Maria Giordano » Mon Nov 21, 2005 10:25 am

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

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 42080
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Enrico Maria Giordano » Mon Nov 21, 2005 12:53 pm

Yes, of course.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 68 guests