Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2006 Jan : DLL with TSQLConnection as parameter...

www.cryer.info
Managed Newsgroup Archive

DLL with TSQLConnection as parameter...

Subject:DLL with TSQLConnection as parameter...
Posted by:"Beto BR" (betoneto.t..@gmail.com)
Date:Thu, 19 Jan 2006 09:03:23 -0200

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 ?

Glossary

File Types

Replies:

www.cryer.info
Managed Newsgroup Archive