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

Post Reply
xinyiman
Fresh Boarder
Fresh Boarder
Posts: 13
Joined: 09.06.2016, 19:35

Bug with IB/FB Events on x64

Post by xinyiman »

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: 280
Joined: 08.05.2014, 12:08

Re: Bug in Lazarus

Post by Fr0sT »

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: 13
Joined: 09.06.2016, 19:35

Re: Bug in Lazarus

Post by xinyiman »

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: 280
Joined: 08.05.2014, 12:08

Re: Bug in Lazarus

Post by Fr0sT »

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: 280
Joined: 08.05.2014, 12:08

Re: Bug in Lazarus

Post by Fr0sT »

Confirm the issue with DXE2 @ W64.
Event2 is alerted as Event1 and Event3 as Event2
xinyiman
Fresh Boarder
Fresh Boarder
Posts: 13
Joined: 09.06.2016, 19:35

Re: Bug in Lazarus

Post by xinyiman »

Well, isn't just my problem. Now, how resolve this bug?
Fr0sT
Zeos Dev Team
Zeos Dev Team
Posts: 280
Joined: 08.05.2014, 12:08

Re: Bug in Lazarus

Post by Fr0sT »

I'm investigating the issue. Currently I've no idea what's wrong - API just returns weird value.
xinyiman
Fresh Boarder
Fresh Boarder
Posts: 13
Joined: 09.06.2016, 19:35

Re: Bug with IB/FB Events on x64

Post by xinyiman »

Ok, please keep me updated. good job
Fr0sT
Zeos Dev Team
Zeos Dev Team
Posts: 280
Joined: 08.05.2014, 12:08

Re: Bug with IB/FB Events on x64

Post by Fr0sT »

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

ADD

Done, check 7.3 branch
Post Reply