AV's After ZConnection.Reconnect

The offical for ZeosLib 7.3 Report problems, ask for help, post proposals for the new version of Zeoslib 7.3/v8
Quick Info:
-We made two new drivers: odbc(raw and unicode version) and oledb
-GUID domain/field-defined support for FB
-extended error infos of Firebird
-performance ups are still in queue
In future some more feature will arrive, so stay tuned and don't hassitate to help
Post Reply
brunodelmondes
Fresh Boarder
Fresh Boarder
Posts: 24
Joined: 28.10.2020, 15:12
Location: Brazil

AV's After ZConnection.Reconnect

Post by brunodelmondes »

I'm using Delphi 2010 and ZeosLib SVN 7336... I have a combination of ZConnection > ZQuery > DataSource > DBGrid.

ZConnection is connected to a remote Firebird 2.5 database and, after some time, it is normal to be auto disconnected from the database for inactivity... that's ok... when that happens, a tried to use ZConnection.Reconnect and that, apparently, went well... but, when I move the mouse over the DBGrid, an AV Message ocorrurs... I press OK, then another AV pops up... and that behavior keeps until I call ZConnection.Disconnect followed by ZConnection.Connect procedure.

ZQuery was loaded, of course, before that scenario.

When I click Break on Delphi Debugger, that points me to the ZDbcCache.pas Unit at Line 2574

Code: Select all

if FBuffer.Columns[FColumnOffsets[ColumnIndex{$IFNDEF GENERIC_INDEX} - 1{$ENDIF}]] = bIsNotNull then begin
Bruno Delmondes
marsupilami
Platinum Boarder
Platinum Boarder
Posts: 1939
Joined: 17.01.2011, 14:17

Re: AV's After ZConnection.Reconnect

Post by marsupilami »

Hello Bruno,

that sounds like a bug to me. Usually the Query should be closed after disconnecting. Or do you reopen it yourself? Also please use OPen after Disconenct. Reopen seems to be some kind of legacy thing as far as I remember...

Best regards,

Jan
Post Reply