FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index Bugs report & fixes / Informe de errores y arreglos Bug in TBitmap [Fixed]
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Bug in TBitmap [Fixed]
Posted: Fri Mar 02, 2018 02:26 PM
This code:

Code (fw): Select all Collapse
REDEFINE BITMAP;
         ID 101 OF oDlg;
         FILE "TEST.PAK";
         ADJUST


where TEST.PAK is TEST.BMP renamed, shows "Argument error conditional". It used to work fine in the previous FWH releases.

Any workaround?

EMG
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Bug in TBitmap
Posted: Sat Mar 03, 2018 08:35 AM

Enrico,

Please post the calls stack section from the error.log file, thanks

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Bug in TBitmap
Posted: Sat Mar 03, 2018 09:32 AM
This is a sample. It doesn't error out but shows a sheet instead of the bitmap (open.pak is open.bmp renamed).

Code (fw): Select all Collapse
#include "Fivewin.ch"


FUNCTION MAIN()

    LOCAL oDlg

    DEFINE DIALOG oDlg

    @ 1, 1 BITMAP;
           FILE "open.pak"

    ACTIVATE DIALOG oDlg;
             CENTER

    RETURN NIL


EMG
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Bug in TBitmap
Posted: Sun Mar 04, 2018 01:04 PM

Enrico,

Here an empty dialog is shown

Please post a screenshot of what you get, thanks

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Bug in TBitmap
Posted: Sun Mar 04, 2018 01:06 PM

I copied an open.bmp to open.pak and it is properly shown

Please double check that open.pak is the right bitmap that you want to show

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Bug in TBitmap
Posted: Sun Mar 04, 2018 02:27 PM

I just sent the sample (PRG, PAK and EXE) to your private email.

EMG

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Bug in TBitmap
Posted: Sun Mar 04, 2018 02:31 PM
Unfortunately your email provider rejected the attachment. :-)

Anyway, you must be able to reproduce the problem using my sample:

Code (fw): Select all Collapse
#include "Fivewin.ch"


FUNCTION MAIN()

    LOCAL oDlg

    DEFINE DIALOG oDlg

    @ 1, 1 BITMAP;
           FILE "open.pak"

    ACTIVATE DIALOG oDlg;
             CENTER

    RETURN NIL


EMG
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Bug in TBitmap
Posted: Sun Mar 04, 2018 02:34 PM

I just sent you PRG and PAK (without EXE).

EMG

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Bug in TBitmap
Posted: Sun Mar 04, 2018 02:35 PM

And an image of the result.

EMG

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Bug in TBitmap
Posted: Mon Mar 05, 2018 08:29 AM

Enrico,

It is working fine here

I have emailed you the most recent FWH libs

thanks

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Bug in TBitmap
Posted: Mon Mar 05, 2018 09:25 AM

It doesn't work here. Can I have you EXE to test here, please?

EMG

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Bug in TBitmap
Posted: Mon Mar 05, 2018 09:32 AM
Works fine if I comment out

Code (fw): Select all Collapse
//#define REVD1801


from bitmap.prg.

EMG
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Bug in TBitmap
Posted: Mon Mar 05, 2018 10:35 AM

We are checking it, thanks

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM