Search found 2 matches

by maxoverdrive
16.04.2009, 00:14
Forum: 6.6 - stable
Topic: AV (access violation) when calling TzMysql41PlainDriver.init
Replies: 3
Views: 437

didn't work

@MYSQL_API.mysql_connect is still nil
though @MYSQL_API.mysql_realconnect seems to work.

(I had tried the Initialize method before but gave up when mydriver.connect didn't work)

perhaps the plain api needs to check for nil functions and raise some exceptions? :D
by maxoverdrive
14.04.2009, 22:41
Forum: 6.6 - stable
Topic: AV (access violation) when calling TzMysql41PlainDriver.init
Replies: 3
Views: 437

AV (access violation) when calling TzMysql41PlainDriver.init

var mydriver:IMysqlPlainDriver;
mysqldb:PZMysqlConnection;
begin
mydriver := Tzmysql41PlainDriver.create()
mydriver.init(mysqldb);<-- causes access violation, @MYSQL_API.mysql_init = $00000000
...
end;

what am I doing wrong, is there another step I am missing?