FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour SetResdebug with Checkres() not showing line #
Posts: 663
Joined: Mon Dec 05, 2005 11:22 PM
SetResdebug with Checkres() not showing line #
Posted: Mon Jul 11, 2011 04:42 PM

I noticed that others have more information when they look at the checkres file.
My application creates res.log not checkres.log and it only shows the type of resource and a number.

For example:
BMP
0
BMP
/0('(,(')/
FONT
0

Posts: 663
Joined: Mon Dec 05, 2005 11:22 PM
Re: SetResdebug with Checkres() not showing line #
Posted: Wed Jul 13, 2011 01:25 PM

I would really like to see what program and line # associated with the resource.
Nobody can even point me in the right direction? I really want to track down the resource problems.

Posts: 824
Joined: Thu Oct 13, 2005 07:39 AM
Re: SetResdebug with Checkres() not showing line #
Posted: Thu Jul 14, 2011 07:24 AM

Gale,

Do you compile with -l parameter (no line numbers) ? Try to compile without this parameter.

kind regards

Stefan
Posts: 663
Joined: Mon Dec 05, 2005 11:22 PM
Re: SetResdebug with Checkres() not showing line #
Posted: Thu Jul 14, 2011 02:45 PM

I use commercial xHarbour so I don't normally set any parameters, but I will check. If line numbers were not included, would tracelog() still show a trace with line number? Here is an example of what mine looks like.

[c:\projects\diwin11\DIWIN.PRG->MAIN] (91)
Type: C >>>Test Trace Log Entry<<<

OK I checked the compiler log and it does not use -l. Here is one of the compile lines in the log

xhb.exe -o"obj\DIWIN.c" -m -n -pOobj\ -q -gc0 -B -I"C:\fwh\include" -I"C:\xHB\include" -I"C:\xHB\include\w32" "c:\projects\diwin11\DIWIN.PRG"<<<

Posts: 663
Joined: Mon Dec 05, 2005 11:22 PM
Re: SetResdebug with Checkres() not showing line #
Posted: Thu Jul 14, 2011 08:27 PM

Ok, I might have found the problem.
Either there is an older checkres inside fivehcm.lib and it is linked before fivehmx.lib
or
fivehmx.lib has an older version in it.

If I compile and link c:\fwh\source\function\checkres.prg directly in the application, checkres() works as expected.

Does someone have an updated .xbp file to re-created fivehmx.lib

Continue the discussion