Bug in TBitmap [Fixed]

Bug in TBitmap [Fixed]

Postby Enrico Maria Giordano » Fri Mar 02, 2018 2:26 pm

This code:

Code: Select all  Expand view  RUN
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
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Bug in TBitmap

Postby Antonio Linares » Sat Mar 03, 2018 8:35 am

Enrico,

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42118
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Bug in TBitmap

Postby Enrico Maria Giordano » Sat Mar 03, 2018 9: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: Select all  Expand view  RUN
#include "Fivewin.ch"


FUNCTION MAIN()

    LOCAL oDlg

    DEFINE DIALOG oDlg

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

    ACTIVATE DIALOG oDlg;
             CENTER

    RETURN NIL


EMG
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Re: Bug in TBitmap

Postby Antonio Linares » Sun Mar 04, 2018 1: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42118
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Bug in TBitmap

Postby Antonio Linares » Sun Mar 04, 2018 1: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42118
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Bug in TBitmap

Postby Enrico Maria Giordano » Sun Mar 04, 2018 2:27 pm

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

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Bug in TBitmap

Postby Enrico Maria Giordano » Sun Mar 04, 2018 2:31 pm

Unfortunately your email provider rejected the attachment. :-(

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

Code: Select all  Expand view  RUN
#include "Fivewin.ch"


FUNCTION MAIN()

    LOCAL oDlg

    DEFINE DIALOG oDlg

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

    ACTIVATE DIALOG oDlg;
             CENTER

    RETURN NIL


EMG
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Bug in TBitmap

Postby Enrico Maria Giordano » Sun Mar 04, 2018 2:34 pm

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

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Bug in TBitmap

Postby Enrico Maria Giordano » Sun Mar 04, 2018 2:35 pm

And an image of the result.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Bug in TBitmap

Postby Antonio Linares » Mon Mar 05, 2018 8: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42118
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Bug in TBitmap

Postby Enrico Maria Giordano » Mon Mar 05, 2018 9:25 am

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

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Bug in TBitmap

Postby Enrico Maria Giordano » Mon Mar 05, 2018 9:32 am

Works fine if I comment out

Code: Select all  Expand view  RUN
//#define REVD1801


from bitmap.prg.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Bug in TBitmap

Postby Antonio Linares » Mon Mar 05, 2018 10:35 am

We are checking it, thanks
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42118
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Next

Return to Bugs report & fixes / Informe de errores y arreglos

Who is online

Users browsing this forum: No registered users and 6 guests