access violation

From: [BuKoX] (bukox_at_gazeta.pl)
Date: 12/21/04


Date: Tue, 21 Dec 2004 09:18:00 +0100

Hello.
I have a problem with Access Violation error. In main program I have:

var
   qResult : TStringList;

procedure sth();
begin
   try
     qResult := TStringList.Create;
     q('SELECT ...',qResult)
     ...
   finally
     qResult.Free;
   end;
end;

and in dll I have:

function q(query:string;var qResult:TStringList):boolean;
begin
   ...
   qResult.Add('sth');
   ...
end;

And exactly in add method EAccess Violation appears. I put ShareMem unit
both in project and dll as first unit.

What's wrong?

-- 
  __               __
|__\\ |  || |_// /  \\ \_//      FreeBSD: The Power To Serve
|__// |__|| | \\ \__// / \\  +------------------------------+
+[ http://bukox.prv.pl ][ http://total.bukox.dmkproject.pl ]+


Relevant Pages