Contents of Log file

Contents of Log file

Postby Rick Lipkin » Sun Feb 05, 2017 5: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: Select all  Expand view

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" 
 
User avatar
Rick Lipkin
 
Posts: 2615
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: Contents of Log file

Postby cnavarro » 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
User avatar
cnavarro
 
Posts: 6500
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Contents of Log file

Postby nageswaragunupudi » 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: Select all  Expand view

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
User avatar
nageswaragunupudi
 
Posts: 10247
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Contents of Log file

Postby Rick Lipkin » 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
User avatar
Rick Lipkin
 
Posts: 2615
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: Contents of Log file

Postby Rick Lipkin » 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
User avatar
Rick Lipkin
 
Posts: 2615
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: Contents of Log file

Postby cnavarro » 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
User avatar
cnavarro
 
Posts: 6500
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Contents of Log file

Postby nageswaragunupudi » 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
User avatar
nageswaragunupudi
 
Posts: 10247
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Contents of Log file

Postby Rick Lipkin » 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: Select all  Expand view


LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
dcust16            BITMAP         ".\\dCust16.bmp"


 
User avatar
Rick Lipkin
 
Posts: 2615
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: Contents of Log file

Postby nageswaragunupudi » 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
User avatar
nageswaragunupudi
 
Posts: 10247
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Contents of Log file

Postby Rick Lipkin » 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
User avatar
Rick Lipkin
 
Posts: 2615
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: Contents of Log file

Postby Rick Lipkin » Mon Feb 06, 2017 2:09 pm

Rao and Cristobal

I found the offending code ..

Code: Select all  Expand view

 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
User avatar
Rick Lipkin
 
Posts: 2615
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 60 guests