SIGSEGV error using ZConnection

The stable tester's forum for ZeosLib 7.0.x series

Report problems concerning our Delphi 2009+ version and new Zeoslib 7.0 features here.
Post Reply
Verdi
Fresh Boarder
Fresh Boarder
Posts: 1
Joined: 21.08.2013, 17:27

SIGSEGV error using ZConnection

Post by Verdi »

Hello everybody,

I am new in this forum and I do my first steps with:
ZEOS-Lib 7.0.4-stable, Firebird embedded 2.5 and Lazarus 1.010.

I have put a ZConnection1 component on a form. There is nothing else on the form.

The code in Lazarus is:

Const
PathToDB = 'C:\testdir\';
DbName = 'hellodb.fdb'; // Firebird, example database

procedure TForm1.FormCreate(Sender: TObject);
begin
ZConnection1.Database := PathToDb + DbName;
ZConnection1.Password := 'masterkey';
ZConnection1.Protocol := 'firebirdd-2.5';
ZConnection1.User := 'SYSDBA';
ZConnection1.Connect;
end;

procedure TForm1.FormClose(Sender: TObject; var CloseAction: TCloseAction);
begin
ZConnection1.Disconnect;
end;

This small project runs correctly in the IDE but when I close the program in the IDE I get the following

error:
Exception-Class <<External: SIGSEGV>>
Address: 100576FD

This error message occurs not on every close process. Sometimes I have to start and close several times

to get the error message. The problem occurs only using the IDE. If I start and close the program

directly running the exe file, there is no problem.

I have distributed all Firebird files in the Lazarus directory and in the project directory as

recommended in Firebird emedded tutorials.

What goes wrong in the IDE ??

Thank you for every help.

Kind regards from Switzerland,
Marco
marsupilami
Platinum Boarder
Platinum Boarder
Posts: 1935
Joined: 17.01.2011, 14:17

Re: SIGSEGV error using ZConnection

Post by marsupilami »

Hello Marco,

are you sure, the exception doesn't happen when you start your program outside of the IDE? Possibly the exception isn't caught by the LCL anymore and you only get messages at the console window - if there is one? Do you see anything if you start your program from the command line?
Best regards,

Jan
Post Reply