Page 1 of 1

Empty Blob field and access violation

Posted: Tue 22 Feb 2005 00:32
by ben
Hello,

I have a TMyQuery and on AfterScroll I have the code:

var
M: TMemoryStream;
begin
M := TMemoryStream.Create;
Query.GetBlob('myblob').SaveToStream(M);


the code works fine if myblob has data. If its empty it returns an access violation. Is it a bug?

Thanks

Posted: Tue 22 Feb 2005 12:12
by Ikar
Please specify the exact MyDAC version (3.X.XX.XX) that you use.

> If its empty

Do you mean IsNull or BLOB of null length?

Posted: Sun 27 Feb 2005 10:47
by ben
3.50.0.16 version

and the BLOB is just NULL, never filled with data.

Posted: Mon 28 Feb 2005 07:31
by Ikar
We couldn't reproduce the problem.
Please send us (mydac*crlab*com) complete small sample to demonstrate it and include script to create server objects.