Hello,
When a attach DLL, i save Screen and Application of DLL.
Next, i initialise th datamodule of DLL
.....
procedure InitDataModuleDLL(AScreen : TScreen; AAppl : TApplication); export;
Screen := AScreen; // AScreen = Screen Main Application
AAppl.CreateForm(TDataMod, DataMod);
....
Its OK.
When i free DLL, i destroy DataMod, and restore Screen of DLL, Application of DLL.
It's result of "Invalid error pointer ....".
Help.
When a attach DLL, i save Screen and Application of DLL.
Next, i initialise th datamodule of DLL
.....
procedure InitDataModuleDLL(AScreen : TScreen; AAppl : TApplication); export;
Screen := AScreen; // AScreen = Screen Main Application
AAppl.CreateForm(TDataMod, DataMod);
....
Its OK.
When i free DLL, i destroy DataMod, and restore Screen of DLL, Application of DLL.
It's result of "Invalid error pointer ....".
Help.