Page 1 of 1

Error when I try to use v6.6.4 instead of v6.6.2 rc

Posted: 15.03.2009, 16:09
by VitOs2
Hi, all!
At first, I want to thank authors for these components!
I have a project that work in this manner (simply):
Server - PostgreSQL 8.3
Client - Delphi 2007, ZConnection + ZReadOnlyQuer (or zQuery...).
Sometimes the connection between Server and Client is breaking. So, client needed for reconnect.
Here is a problem.
When I use ZeosDBO 6.6.2 rc the program process disconnection well. If connection dropped and I make some query for Server the connection is automatically getting up and application continue to work.
But, when I use ZeosDBO 6.6.4 stable version the client don't want work correct. ZConnection.Connected is always in true, but I can't do anything. Every query have exception like this:

Access violation at address 7C9109F9 in module 'ntdll.dll'. Read of address 000B00A3.

Procedure
ZConnection.Connectd := False; ZConnection.Connectd := True;
can't be realized. It always make exception.
And I can't close application correct to.

Can you explain (or fix) this problem. What I need to do? My application must work over the Internet which is not stable. So I need to treat all breakups correct.

Thank you!

Posted: 15.03.2009, 19:18
by seawolf
Recently, for Postgres, has been added the method "PingServer", which check if the connection between a client and a server is on.
So if a connection goes down property Zconnection.Connected is set to false.

Anyway I don't remember is that new method was added to Zeos 6.6.4 or you need to download and install an svn snapshot

Posted: 15.03.2009, 19:47
by VitOs2
Thanks for reply. The meter is that I can't change state of Zconnection.Connected. When I try to assign True or False to Zconnection.Connected it makes exception.
After connection break ZConnection not response correct for any commands.
It is only in last version of components... In 6.6.2 the treatment of connecition break is well.

Posted: 16.03.2009, 12:59
by VitOs2
Can anyone explain me, how can I infrom ZeosLib authors about this bug?

Posted: 16.03.2009, 19:00
by seawolf
The problem is the first attemp.

When you do a Zconnection.Connect for the first time it Zeos cannot connect to the server raise that error.

Anyway having an ntdll.dll exception it seems to me you have installed something which raise some conflict (i.e. a new postgres version) not related to Zeos.

If you want to contact Zeos Dev Team go to http://zeosbugs.firmos.at

Posted: 17.03.2009, 08:42
by VitOs2
Thanks! But the main problem that it dosn't work good only in 6.6.4 version. In 6.6.2 all ok. So, I think, that the reason isn't in some other system complonents.
Ok, will be write to Zeos Dev Team.