I create application witch Delphi 2009 and MyDAC 5.90. My application load dynamically dll library. When I use MyAccess in dll my application crash when I unload library (freeLibrary). If I remove MyAccess from dll everything work fine.
This is example of crash code:
DLL:
Code: Select all
library lib;
uses
SysUtils,
Classes,
MyAccess;
{$R *.res}
begin
end.
Code: Select all
procedure TForm2.Button1Click(Sender: TObject);
var
dllHandle: THandle;
begin
dllHandle := loadLibrary('lib.dll');
freeLibrary(dllHandle);
end;
I remove all other function from dll and application to be sure the problem is in MyAccess.
This crash when I use Lazarus too.
Sorry for my bad english.