Hi!
I'm trying to create a DLL what I call passing the SQLConnection to the DLL
function. At the dll function I create a TSQLDataSet + TDataSetProvider +
TClientDataSet to import a TStream data passed by parameter
DLL function like this:
function ImportStream(SQLConnection: TSQLConnect; Stream: TStream): Boolean;
stdcall;
The function works correct, but, when I close the application, an exception
raise (access violation).
I using this method to load the dll:
H := LoadLibrary('mydll.dll');
@F := GetProcAddress(H, 'ImportStream');
F(SQLCOnnection, Stream);
FreeLibrary(H);
Any idea ?