FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Contents of Log file
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Contents of Log file
Posted: Sun Feb 05, 2017 05:19 PM
To All

Been getting this log file with my current application .. it appears to point to a bitmap in my resource file that is either missing or a mis-spelling on my part in my code ?

Rick Lipkin

Code (fw): Select all Collapse
02/05/2017 10:43:42: WNDREADPALBMPEX( 629 ) uBmp = "DCUST166"   "not found" = "not found"   
02/05/2017 10:43:42: WNDREADPALBMPEX( 633 ) uBmp = "DCUST166"   "invalid resource" = "invalid resource"
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Contents of Log file
Posted: Sun Feb 05, 2017 10:19 PM

Rick

What type of resource is "DCUST166"

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Contents of Log file
Posted: Sun Feb 05, 2017 10:25 PM
Rick Lipkin wrote:To All

Been getting this log file with my current application .. it appears to point to a bitmap in my resource file that is either missing or a mis-spelling on my part in my code ?

Rick Lipkin

Code (fw): Select all Collapse
02/05/2017 10:43:42: WNDREADPALBMPEX( 629 ) uBmp = "DCUST166"   "not found" = "not found"   
02/05/2017 10:43:42: WNDREADPALBMPEX( 633 ) uBmp = "DCUST166"   "invalid resource" = "invalid resource"

Yes, we included this and similar traces recently. These could sometimes help to find causes of some problems at run-time.
Regards



G. N. Rao.

Hyderabad, India
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: Contents of Log file
Posted: Sun Feb 05, 2017 10:40 PM

Cristobal

The dCust16 is a bitmap file for a Button .. I use "d" to designate the button bitmap is used as the disabled indicator .. I will do a quick .prg scan for a resource "dcust166" and see what I find.

Thanks
Rick Lipkin

Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: Contents of Log file
Posted: Sun Feb 05, 2017 10:46 PM

Rao

I just did a quick text find on all my .prg and can not find any instance or reference to dcust166 .... :shock:

Rick Lipkin

Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Contents of Log file
Posted: Sun Feb 05, 2017 10:57 PM
Rick Lipkin wrote:Cristobal

The dCust16 is a bitmap file for a Button .. I use "d" to designate the button bitmap is used as the disabled indicator .. I will do a quick .prg scan for a resource "dcust166" and see what I find.

Thanks
Rick Lipkin


How strange that message!
Do not you have that resource?
FWLOG: Lines 629 and 633 in file ..\function\imgtxtio.prg
Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Contents of Log file
Posted: Sun Feb 05, 2017 11:00 PM

It has to be there somewhere in the program.
May be we need to include full call-stack in the trace in future to help the programmer to locate the source.

Regards



G. N. Rao.

Hyderabad, India
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: Contents of Log file
Posted: Sun Feb 05, 2017 11:02 PM
Cristabol

YES, I have the resource and the bitmap is available during the resource compile .. as it turns out .. I am not even calling this bitmap in this particular program .. just one of my stock icons I use from project to project

Rick Lipkin

Code (fw): Select all Collapse
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
dcust16            BITMAP         ".\\dCust16.bmp"
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Contents of Log file
Posted: Sun Feb 05, 2017 11:06 PM

Mr Rick
Somewhere in your program you might have used resource name as dcust166 instead of dcust16.

Regards



G. N. Rao.

Hyderabad, India
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: Contents of Log file
Posted: Sun Feb 05, 2017 11:10 PM

Rao

I agree with you .. I did a quick scan with a text find and replace utility and could not find a match .. will look again in the morning and let you know ..

Thanks
Rick Lipkin

Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: Contents of Log file
Posted: Mon Feb 06, 2017 02:09 PM
Rao and Cristobal

I found the offending code ..

Code (fw): Select all Collapse
 REDEFINE BTNBMP oBtn6 ID 120 of oSchA  ;      // manage drivers
            RESOURCE "CUST16","DCUST166","DCUST16" ;
            PROMPT "Manage Drv" LEFT 2007;
            ACTION ( _DrvBrow(), ;


I have 3 folders in this development application .. I still like my old Ts.Exe ( norton text search ) but unfortunately it is 16 bit and to use Ts.Exe I have to use the Dos Box emulator .. and in a 16 bit command window all my folders are truncated with ~1,~2 and ~3. I was searching the wrong folder last evening and that is why I could not find the offending code ..

Thanks for your help!
Rick Lipkin

Continue the discussion