Page 1 of 2

Bug in TBitmap [Fixed]

Posted: Fri Mar 02, 2018 2:26 pm
by Enrico Maria Giordano
This code:

Code: Select all

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

Re: Bug in TBitmap

Posted: Sat Mar 03, 2018 8:35 am
by Antonio Linares
Enrico,

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

Re: Bug in TBitmap

Posted: Sat Mar 03, 2018 9:32 am
by Enrico Maria Giordano
This is a sample. It doesn't error out but shows a sheet instead of the bitmap (open.pak is open.bmp renamed).

Code: Select all

#include "Fivewin.ch"


FUNCTION MAIN()

    LOCAL oDlg

    DEFINE DIALOG oDlg

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

    ACTIVATE DIALOG oDlg;
             CENTER

    RETURN NIL
EMG

Re: Bug in TBitmap

Posted: Sun Mar 04, 2018 12:04 pm
by Enrico Maria Giordano
Any workaround?

EMG

Re: Bug in TBitmap

Posted: Sun Mar 04, 2018 1:04 pm
by Antonio Linares
Enrico,

Here an empty dialog is shown

Please post a screenshot of what you get, thanks

Re: Bug in TBitmap

Posted: Sun Mar 04, 2018 1:06 pm
by Antonio Linares
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

Re: Bug in TBitmap

Posted: Sun Mar 04, 2018 2:27 pm
by Enrico Maria Giordano
I just sent the sample (PRG, PAK and EXE) to your private email.

EMG

Re: Bug in TBitmap

Posted: Sun Mar 04, 2018 2:31 pm
by Enrico Maria Giordano
Unfortunately your email provider rejected the attachment. :-(

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

Code: Select all

#include "Fivewin.ch"


FUNCTION MAIN()

    LOCAL oDlg

    DEFINE DIALOG oDlg

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

    ACTIVATE DIALOG oDlg;
             CENTER

    RETURN NIL
EMG

Re: Bug in TBitmap

Posted: Sun Mar 04, 2018 2:34 pm
by Enrico Maria Giordano
I just sent you PRG and PAK (without EXE).

EMG

Re: Bug in TBitmap

Posted: Sun Mar 04, 2018 2:35 pm
by Enrico Maria Giordano
And an image of the result.

EMG

Re: Bug in TBitmap

Posted: Mon Mar 05, 2018 8:29 am
by Antonio Linares
Enrico,

It is working fine here

I have emailed you the most recent FWH libs

thanks

Re: Bug in TBitmap

Posted: Mon Mar 05, 2018 9:25 am
by Enrico Maria Giordano
It doesn't work here. Can I have you EXE to test here, please?

EMG

Re: Bug in TBitmap

Posted: Mon Mar 05, 2018 9:32 am
by Enrico Maria Giordano
Works fine if I comment out

Code: Select all

//#define REVD1801
from bitmap.prg.

EMG

Re: Bug in TBitmap

Posted: Mon Mar 05, 2018 10:35 am
by Antonio Linares
We are checking it, thanks

Re: Bug in TBitmap

Posted: Thu Mar 08, 2018 2:55 pm
by Enrico Maria Giordano
Any news?

EMG