SIGSEGV error using ZConnection
Posted: 21.08.2013, 17:53
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
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