When i run code approximately noted below i get an assertion error
TESTCASE:
DLL
Code: Select all
Library
...
function CreateQuery:TDataSet;stdcall;
begin
result:=TOraQuery.Create(OraSession1);
end;
function GetSQL(var oraquery:TDataSet):TStrings;stdcall;
begin
result:=TOraQuery(obj).SQL;
end;
Function GetParams(var oraquery:TDataSet):TStrings;stdcall;
begin
result:=TOraQuery(obj).Params;
end;
Code: Select all
....//load init proc and etc
proc test;
q:TDataSet;
s:TStrings;
p:TParams;
begin
q:=CreateQuery;
s:=GetSQL(q);
s.clear;
s.add('begin mypkg.myproc(:a); end;');
p:=GetParams(q);
p[0].ParamType:=ptOutput;
p[0].DataType:=ftCursor;
q.open; //raise assertion error in oraclasses.pas in 5730
end;
Thnx.