Hi Michael:Michael wrote:@all: Hi!
Using D2006 - Enterprise Edition (ger.) - Version: 10.0.2288.42451 Update 2 (also applied the Hotfixes) and solved the problem like this (thx to Mark for the hint!).
@Mark: Had diverse probs using your "@"-Version
[syntax="delphi"]destructor TZMySQLNativeLibraryLoader.Destroy;
begin
if (Loaded) and (GetAddress('mysql_server_end') <> nil) then
api_rec.mysql_server_end;
inherited Destroy;
end;[/syntax]
You have to extend this method in all the ZPlainMySqlxx.pas files. Compiles and runs perfectly
Regards!
Thanks for the tip. I should use api_rec.mysql_server_end in the if clause so you leave to ZPlain drivers the job to know what si the name of the function, so the code should look like:
[syntax="delphi"]destructor TZMySQLNativeLibraryLoader.Destroy;
begin
if (Loaded) and (@api_rec.mysql_server_end <> nil) then
api_rec.mysql_server_end;
inherited Destroy;
end;[/syntax]
This is only for stright forward compatibility, nothing else
Mark, can you post this changes whenever you can? or i can do them and send you the patches
Regards