Empty Blob field and access violation
Posted: Tue 22 Feb 2005 00:32
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
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