Program creates a Log File

Program creates a Log File

Postby betoncu » Mon Jun 19, 2017 12:50 pm

My program is creating a log file as follows. What's wrong please?

19/06/2017 14:47:57: WNDREADPALBMPEX( 694 ) uBmp = "BTN_LAST" "invalid resource" = "invalid resource"
19/06/2017 14:47:57: WNDREADPALBMPEX( 694 ) uBmp = "BTN_PRINTER2" "invalid resource" = "invalid resource"
19/06/2017 14:47:57: WNDREADPALBMPEX( 694 ) uBmp = "BTN_EXCEL2" "invalid resource" = "invalid resource"
19/06/2017 14:47:57: WNDREADPALBMPEX( 694 ) uBmp = "BTN_EYE2" "invalid resource" = "invalid resource"
19/06/2017 14:47:57: WNDREADPALBMPEX( 694 ) uBmp = "BTN_BROWSE2" "invalid resource" = "invalid resource"
19/06/2017 14:47:57: WNDREADPALBMPEX( 694 ) uBmp = "BTN_EXIT2" "invalid resource" = "invalid resource"
Birol Betoncu
birol.betoncu@gmail.com
Using Harbour, FWH 19.05, BCC7
User avatar
betoncu
 
Posts: 126
Joined: Sat Oct 08, 2005 9:38 pm
Location: Cyprus (North)

Re: Program creates a Log File

Postby Rick Lipkin » Mon Jun 19, 2017 1:42 pm

Birol

Somewhere in your program you are calling these icons on your BtnBmps and those resources do not exist on File or not burned into your Executable. I would use a File Find utility and have it search your .Prgs for the Resource Calls in your program and verify the resources actually exist in your .Exe or .Res file.

Rick Lipkin


19/06/2017 14:47:57: WNDREADPALBMPEX( 694 ) uBmp = "BTN_LAST" "invalid resource" = "invalid resource"
19/06/2017 14:47:57: WNDREADPALBMPEX( 694 ) uBmp = "BTN_PRINTER2" "invalid resource" = "invalid resource"
19/06/2017 14:47:57: WNDREADPALBMPEX( 694 ) uBmp = "BTN_EXCEL2" "invalid resource" = "invalid resource"
19/06/2017 14:47:57: WNDREADPALBMPEX( 694 ) uBmp = "BTN_EYE2" "invalid resource" = "invalid resource"
19/06/2017 14:47:57: WNDREADPALBMPEX( 694 ) uBmp = "BTN_BROWSE2" "invalid resource" = "invalid resource"
19/06/2017 14:47:57: WNDREADPALBMPEX( 694 ) uBmp = "BTN_EXIT2" "invalid resource" = "invalid resource"
User avatar
Rick Lipkin
 
Posts: 2666
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: Program creates a Log File

Postby joseluisysturiz » Mon Jun 19, 2017 2:28 pm

Buen dia, lo mismo me sucede pero desde que empece a usar HB, antes usana xHb y nada de esto, parece HB es mas "detallista" y verifica hasta la marca del teclado que uno usa(chiste), gracias...saludos... :shock:
Dios no está muerto...

Gracias a mi Dios ante todo!
User avatar
joseluisysturiz
 
Posts: 2064
Joined: Fri Jan 06, 2006 9:28 pm
Location: Guatire - Caracas - Venezuela

Re: Program creates a Log File

Postby betoncu » Mon Jun 19, 2017 3:33 pm

Rick, these buttons are burned into the executable and I am calling them from many different places and many prgs.
This happens sometimes, not always,
Anyway, thanks for your reply (both)
Birol Betoncu
birol.betoncu@gmail.com
Using Harbour, FWH 19.05, BCC7
User avatar
betoncu
 
Posts: 126
Joined: Sat Oct 08, 2005 9:38 pm
Location: Cyprus (North)

Re: Program creates a Log File

Postby nageswaragunupudi » Mon Jun 19, 2017 5:01 pm

These warnings are written into a log file when the program tries to use a resource for bitmap but resource by that name is not in the .res file linked to the exe. This is intended to help the programmer to fix the issue.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10646
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: nageswaragunupudi and 77 guests