Unknown informations in log-file ( missing error-line ) ?

Unknown informations in log-file ( missing error-line ) ?

Postby ukoenig » Tue Jun 18, 2013 1:36 pm

Hello,
I noticed, in some cases the LOG-file < Clip.log > returns error-informations it is hard to find the line, the error occurs.

xHarbour 1.2.3 Intl. (SimpLex) (Build 20130422)
Copyright 1999-2013, http://www.xharbour.org http://www.harbour-project.org/
Compiling '.\Ascview.PRG'...
100100100100200300400500600700800900100011001002001002001002001002003004005006007008009001000110012001300140015001600170018001002001002003004001001002003004005006007008009001000110012001300
140015001600170018001900200021002200230024002500260027002800290030003100320033003400350036003700
38003900400041001
error

No code generated

I didn't noticed that before

I found the error-line with missing : ') at the end
because of some hundreds lines, it is hard to find the error.

oText:Add('// ------------------

oText:Add('// ------------------')

Best Regards
Uwe :?:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: Unknown informations in log-file ( missing error-line ) ?

Postby Antonio Linares » Tue Jun 18, 2013 7:13 pm

Uwe,

Have you tried to call xharbour directly without using buildx.bat ?

I am curious to know if that error is reported by the compiler. thanks
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41314
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Unknown informations in log-file ( missing error-line ) ?

Postby ukoenig » Wed Jun 19, 2013 6:44 am

Antonio,

There seems to be special situations.
I had to check line by line by myself.
I will create a little testfile with these special errors.
The same mystery happend with this error :

LOCAL oWnd1, oSay[4], oGet1, ,cGet1 := "?"

I added these errors to \samples\testfile.prg

#include "FiveWin.ch"
function Main()
local oText := TTxtFile():New( "Test.txt" )
local n, , i
if oText:Open()
oText:Add( "CA-Clipper & FiveWin: )
oText:Add( "Real xBase power" )
oText:Add( "at your fingertips!" )
oText:Close()
endif
MsgInfo( MemoRead( "Test.txt" ) )
oText:New( "c:\autoexec.bat" )
MsgInfo( oText:RecCount() )
for n = 1 to 5
MsgInfo( oText:ReadLine() )
oText:Skip()
next
oText:Close()
return nil

Image

Image

Best Regards
Uwe :?:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: Unknown informations in log-file ( missing error-line ) ?

Postby ADutheil » Wed Jun 19, 2013 11:38 am

To me the sequence 100100100100200300400500600700800900100011001002001002001002001002003004005006007008009001000110012001300140015001600170018001002001002003004001001002003004005006007008009001000110012001300
140015001600170018001900200021002200230024002500260027002800290030003100320033003400350036003700
38003900400041001
seems to be line numbers. So you might jump to line 4100 to beging searching the bug.
Regards,

André Dutheil
FWH 13.04 + HB 3.2 + MSVS 10
ADutheil
 
Posts: 368
Joined: Sun May 31, 2009 6:25 pm
Location: Salvador - Bahia - Brazil

Re: Unknown informations in log-file ( missing error-line ) ?

Postby ukoenig » Wed Jun 19, 2013 1:09 pm

André

The testfile.prg sample got only 27 lines
The values in comp.log don't make any sense to me.
The values are the same. It doesn't matter, if the error will be in line 3 or 7

Code: Select all  Expand view

#include "FiveWin.ch"

function Main()
local oText := TTxtFile():New( "Test.txt" )
local n // , , i forced error 1 with double , ,

if oText:Open()
      oText:Add( "CA-Clipper & FiveWin: " ) //  ) forced error 2 with NO "
      oText:Add( "Real xBase power" )
      oText:Add( "at your fingertips!" )
      oText:Close()
endif

MsgInfo( MemoRead( "Test.txt" ) )

// Now lets read a text file -Your autoexec.bat!!!-

oText:New( "c:\autoexec.bat" )
MsgInfo( oText:RecCount() )

for n = 1 to 5
      MsgInfo( oText:ReadLine() )
      oText:Skip()
next
oText:Close()

return nil

/*
same values from error line 5 and 8 in comp.log displayed with a texteditor :

xHarbour 1.2.3 Intl. (SimpLex) (Build 20130422)
Copyright 1999-2013, http://www.xharbour.org http://www.harbour-project.org/
Compiling 'testfile.prg' and generating preprocessed output to 'testfile.ppo'...

100

100

100

100

200

300

400

500

600
*/

 


Best Regards
Uwe :?:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: Unknown informations in log-file ( missing error-line ) ?

Postby Antonio Linares » Wed Jun 19, 2013 8:51 pm

Uwe,

FWH samples buildx.bat also creates a file warnings.log, please have a look at it also, just in case
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41314
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Unknown informations in log-file ( missing error-line ) ?

Postby ukoenig » Thu Jun 20, 2013 10:26 am

Antonio,

Thank You very much-
That is the message I've been looking for ( from warnings.log ) :

oText:Add( "CA-Clipper & FiveWin: )

testfile.prg(8) Error E0002 Unterminated string: 'CA-Clipper & FiveWin: )'

Do I have to modify my RMK-files to get the warning.log,, because it is not defined ?
I used the syntax defined in BORMAKE.zip
There the makefile-structure is different.

Best regards
Uwe :lol:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 85 guests