Recent

Author Topic: Access violation on ZEOS  (Read 24588 times)

iru

  • Sr. Member
  • ****
  • Posts: 321
Re: Access violation on ZEOS
« Reply #15 on: April 29, 2010, 11:59:44 pm »
Gentlefolk,

Please humor me on this one.

Following the previous replies in this forum I checked through a project and tried to get things correct with FB, FB embedded and the protocols required. Woops, up popped the access violation.

So I have done the following:

FB software = Firebird-2.1.3.18185-0_win32.

Exited lazarus.
Created a directory
Re-entered lazarus.
Created an application.
Saved the application in the directory.
Created a FB database in the directory.
Added a single table to the DB.

Added a zconnection to the form.
As I have firebird (no extra d) selected protocol = firebird-2.0.
Completed all parameters.

Added zquery1. Added sql, pointed to the zconnection.
Could not set active = true, got an "access violation".

Set zconnection.protocol = firebird-1.5, same problem.

Set zconnection.protocol = firebird-1.0, could set zquery active.
Project compiled OK, executed and displayed the blank form.

Exited Lazarus, re-entered, performed all the above tests (2.0, 1.5, 1.0), results the same.

Back to an original project, woops zconnection.protocol - firebirdD-2.0. Wrong!!!!
Changed to firebird-2.0, could set zqueries.active = true.
Project compiled ok, crashed on execution.

Changed zconnection.protocol = firebird-1.0. Compiled and executed OK.
Set zconnection.protocol = firebirdd-2.0 compiles and executes OK.

So it appears that to use FB with the "correct" (protocol without the extra d) I am limited to 'firebird-1.0' to get things to compile and execute correctly.

I have attached the simple test example.

Ian

Pere

  • New Member
  • *
  • Posts: 11
Re: Access violation on ZEOS
« Reply #16 on: October 23, 2010, 04:04:29 pm »
I had same problem with Laz 0.9.28, ZEOS 6.6.6, Debian 6 and Firebird 2.1.3.18185 installed from Debian repositori.

I solved it replacing at /usr/lib/

libfbclient.so
libfbclient.so.2

with the same libraries from Firebird 2.1.1.11791.

After that no more "Access violation"

 

TinyPortal © 2005-2018