madorin / fibplus

FibPlus Library for Delphi and C++Builder. Data access components for Firebird & Interbase.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Access violation in TFIBCustomDataSet.DataEvent on 64bit application with Delphi 11.1

davideangeli opened this issue · comments

Hi, I'm compiling Fibplus with new D11.1 Alexandria. An application compiled as win64 raises always an access violation when processing TFIBCustomDataSet.DataEvent. The problem is due to a couple of calls to that method with a brutal cast of the Field variable as longint instead of EventInfo (that is NativeInt).

I correct with the right cast the 2 methods TFIBCustomDataSet.SetFieldData and TFIBDSBlobStream.Destroy and the access violation is gone.

Hi, I suppose that the issue appear on D11.1 win64 apps due to this D11.1 changes on linker about ASLR: https://blog.marcocantu.com/blog/rad111_pe_security.html.

@davideangeli , can you submit a MR on this?