Param loaded from stream raises an EVariantBadIndexError
Posted: Tue 15 Oct 2013 16:39
I have a problem with latest UniDAC.
I load a parameter from a stream file with
When I run MyQuery.Execute I get an EVariantBadIndexError. The problem is in the procedure TCustomDASQL.AssignParamValue(ParamDesc: TParamDesc; Param: TDAParam).
In fact the Param.GetNativeParamObject does not get propagated immediately when the parameter is some KB. If i put a breakpoint and wait for the hint to come on the IDE for the Param.GetNativeParamObject, then the whole execution works.
Does this have to do with LoadFromStream(fMemStream, ftBlob)?
I load a parameter from a stream file with
Code: Select all
fMemStream.Position := 0;
MyQuery.Params[i].LoadFromStream(fMemStream, ftBlob);
fMemStream.Clear;
In fact the Param.GetNativeParamObject does not get propagated immediately when the parameter is some KB. If i put a breakpoint and wait for the hint to come on the IDE for the Param.GetNativeParamObject, then the whole execution works.
Does this have to do with LoadFromStream(fMemStream, ftBlob)?