Bug with IB/FB Events on x64

In this forum you may discuss all issues concerning the Lazarus IDE and Freepascal (both running on Windows or Linux).

Moderators: gto, cipto_kh, EgonHugeist

xinyiman
Fresh Boarder
Fresh Boarder
Posts: 5
Joined: 09.06.2016, 19:35

Bug with IB/FB Events on x64

Postby xinyiman » 15.03.2018, 12:05

Hi guys, I am a user of ZeosLib in Lazarus. I use it to connect to a FireBird 2.5 database and it works perfectly on win32 bit, mac os x, linux 32 bit, but when I compile for win64 bit I get a annoying bug in the component that handles firebird events.

Virtually any event he receives from the network always returns me and only the last (entered chronologically) in the list of accepted events.

Is it a known bug? Has it already been corrected?

Thank you
Last edited by Fr0sT on 26.03.2018, 12:45, edited 1 time in total.
Reason: more meaningful subj

Fr0sT
Zeos Dev Team
Zeos Dev Team
Posts: 120
Joined: 08.05.2014, 12:08

Re: Bug in Lazarus

Postby Fr0sT » 15.03.2018, 18:02

Hi,
not much people use events :) they are not even being checked in test suite. So if you provide a simple test case, it likely will be included to catch such cases

xinyiman
Fresh Boarder
Fresh Boarder
Posts: 5
Joined: 09.06.2016, 19:35

Re: Bug in Lazarus

Postby xinyiman » 16.03.2018, 19:08

Ok, this is my example. It run correctly on

win32, mac os x 32, ubuntu 32 bit

but not correctly on win64.

Press button start and after other button.
You do not have the required permissions to view the files attached to this post.

Fr0sT
Zeos Dev Team
Zeos Dev Team
Posts: 120
Joined: 08.05.2014, 12:08

Re: Bug in Lazarus

Postby Fr0sT » 23.03.2018, 14:46

I've run a test project and must admit I don't understand how it works even on Win x32. Callback is called with all 3 events only on event '1', two other events are ignored.

EDIT Found the issue, affects Unicode Delphis

Fr0sT
Zeos Dev Team
Zeos Dev Team
Posts: 120
Joined: 08.05.2014, 12:08

Re: Bug in Lazarus

Postby Fr0sT » 23.03.2018, 17:02

Confirm the issue with DXE2 @ W64.
Event2 is alerted as Event1 and Event3 as Event2

xinyiman
Fresh Boarder
Fresh Boarder
Posts: 5
Joined: 09.06.2016, 19:35

Re: Bug in Lazarus

Postby xinyiman » 26.03.2018, 10:39

Well, isn't just my problem. Now, how resolve this bug?

Fr0sT
Zeos Dev Team
Zeos Dev Team
Posts: 120
Joined: 08.05.2014, 12:08

Re: Bug in Lazarus

Postby Fr0sT » 26.03.2018, 12:44

I'm investigating the issue. Currently I've no idea what's wrong - API just returns weird value.

xinyiman
Fresh Boarder
Fresh Boarder
Posts: 5
Joined: 09.06.2016, 19:35

Re: Bug with IB/FB Events on x64

Postby xinyiman » 26.03.2018, 13:12

Ok, please keep me updated. good job

Fr0sT
Zeos Dev Team
Zeos Dev Team
Posts: 120
Joined: 08.05.2014, 12:08

Re: Bug with IB/FB Events on x64

Postby Fr0sT » 26.03.2018, 14:40

I got it! Will commit the fix in a few minutes

ADD

Done, check 7.3 branch


Return to “Lazarus / Freepascal”

Who is online

Users browsing this forum: No registered users and 0 guests