(solved)ZEOS 7.2.6, ZIBEventAlerter error

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
Soner
Junior Boarder
Junior Boarder
Posts: 27
Joined: 12.02.2017, 17:00

(solved)ZEOS 7.2.6, ZIBEventAlerter error

Post by Soner »

Hello,
I am using ZEOS 7.2.6,svn-r6194 from 18.12.2019. (Lazarus 2.6, fpc 3.0.4 both 64-Bit Windows 7)
When I use TZIBEventAlerter-Component then exception occures.
Nobody else is using TZIBEventAlerter or does it only happen to me?
I had no errors with Zeos-version 7.2.4-stable.

How to reproduce it?
1. Put one TZConnection and a TZIBEventAlerter component on the form and connect together.
2. Run the Program and exception happens in this procedure (from: src\Component\IBEventAlerter.pas):

Code: Select all

Procedure TZIBEventAlerter.SetConnection({$IFDEF AUTOREFCOUNT}const{$ENDIF}Value: TZConnection);
Var
  WasRegistered: boolean;
Begin
   If (Value <> FConnection) Then Begin
      If (csDesigning in ComponentState) Then
         FConnection := Value
      Else Begin
         WasRegistered := Registered;
         If WasRegistered Then
            UnRegisterEvents;
         FConnection := Value;
         If WasRegistered Then
            RegisterEvents;
      End;
      FPlainDriver := FConnection.DbcConnection.GetIZPlainDriver.GetInstance as TZInterbasePlainDriver; // <<< this line!!!
      // ^ ^ ^      this line above causes exception ^ ^^ 
   End;
End;
Last edited by Soner on 25.12.2020, 12:26, edited 3 times in total.
Soner
Junior Boarder
Junior Boarder
Posts: 27
Joined: 12.02.2017, 17:00

Re: ZEOS 7.2.6, ZIBEventAlerter error

Post by Soner »

Version zeosdbo-7.2.6-stable works without error.
Soner
Junior Boarder
Junior Boarder
Posts: 27
Joined: 12.02.2017, 17:00

Re: ZEOS 7.2.6, ZIBEventAlerter error

Post by Soner »

Now I tested trunk version (r6213) it has also error.

now I will zeosdbo-7.2.6-stable version and mark this topic solved.
Soner
Junior Boarder
Junior Boarder
Posts: 27
Joined: 12.02.2017, 17:00

Re: ZEOS 7.2.6, ZIBEventAlerter error

Post by Soner »

This error still exists in trunk version from today. (svn r6416).
Soner
Junior Boarder
Junior Boarder
Posts: 27
Joined: 12.02.2017, 17:00

Re: ZEOS 7.2.6, ZIBEventAlerter error

Post by Soner »

This error doesn't appear on Lazarus 1.8.5, freepascal 3.0.4, both 32 Bit,
only with Lazarus 2.0.6, freepascal 3.0.4, both 64 Bit.
Maybe freepascal 64 bit has failure or new lazarus has failure or zeos 7.2.6 works not good with 64 bit or new lazarus.
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Re: ZEOS 7.2.6, ZIBEventAlerter error

Post by EgonHugeist »

Hello Soner, is the problem resolved inbetween?
Best regards, Michael

You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/

Image
Soner
Junior Boarder
Junior Boarder
Posts: 27
Joined: 12.02.2017, 17:00

Re: ZEOS 7.2.6, ZIBEventAlerter error

Post by Soner »

Yes, I installed yesterday Lazarus 2.0.11 and fpc 3.2.1 64bit and Zeos 7.2.8-stable, it works without error.
Thanks to zeos team.

Sorry that i answered too late.
Post Reply