@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?
Search found 2 matches
- 16.04.2009, 00:14
- Forum: 6.6 - stable
- Topic: AV (access violation) when calling TzMysql41PlainDriver.init
- Replies: 3
- Views: 437
- 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?
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?