problem of the zeoslib in the lazarus 0.9.11

Forum related to version 6.5.1 (alpha) and 6.6.x (beta) of ZeosLib's DBOs

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
silviogs
Junior Boarder
Junior Boarder
Posts: 42
Joined: 24.08.2005, 12:54
Location: The Most Oriental Point of America - João Pessoa - Brazil
Contact:

problem of the zeoslib in the lazarus 0.9.11

Post by silviogs »

Hello friends

how to solve this problem of the zeoslib in the lazarus 0.9.11 :(

---------------------------
Error
---------------------------
Runtime error 210 at $004026C5

$004026C5 FPC_CHECK_OBJECT, line 468 of C:/lazarus/source/fpc/2.1/rtl/inc/generic.inc

$0089F91F ZDBCDBLIB_init, line 735 of C:/lazarus/components/zeoslib/src/dbc/ZDbcDbLib.pas

$0040E085 fpc_initializeunits, line 611 of C:/lazarus/source/fpc/2.1/rtl/inc/system.inc

$0040103E main, line 63 of lazarus.pp

questions :
what did in the lazarus change for the zeoslib not to work?

210 Object not initialized
When compiled with range checking on, a program will report this error if you call a virtual method without having called istr constructor.


ZDbcDbLib.pas

initialization
DBLibDriver := TZDBLibDriver.Create;
DriverManager.RegisterDriver(DBLibDriver); // the mistake is in this line when it initializes the lazarus

finalization
if Assigned(DriverManager) then
DriverManager.DeregisterDriver(DBLibDriver);
DBLibDriver := nil;


Thank you very much

Silvio Guedes
barko
Senior Boarder
Senior Boarder
Posts: 51
Joined: 07.09.2005, 13:13

Post by barko »

i have latest lazarus from svn, fpc from 0.9.10 packages of lazarus and latest zeosdbo from cvs (patched)... it works ok.
Post Reply