Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread Why Error 10030?
Thu, Jul 17 2008 9:21 AMPermanent Link

Frederick Chin
Hi,

I am using Delphi 7 with DBISAM 426 Build 3 and I am attempting to
copy the BLOB record from one table to the BLOB record of another
table.

The following code throws up an error 10030 at the line indicated. Why
does this happen and how can I go around it? The record is
successfully posted to the table despite the error.

oSrcStream
:=oTemplate.CreateBlobStream(oTemplate.fieldbyname('content'),
bmRead);
try
     oTb.edit;
     oTgtStream := oTb.CreateBlobStream(oTb.FieldByName('question'),
bmWrite);
      try
           oTgtStream.CopyFrom(oSrcStream, oSrcStream.Size);
           oTb.Post;
      finally
           oTgtStream.Free;   // Error 10030 here and program crashes
      end;
finally
    oSrcStream.Free;
end;

Thanks.
Thu, Jul 17 2008 3:12 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Frederick,

<< The following code throws up an error 10030 at the line indicated. Why
does this happen and how can I go around it? The record is successfully
posted to the table despite the error. >>

You need to make sure that you free any modified BLOB streams *prior* to the
Post.  The Free is what causes the field to be marked as modified, etc.

This is mentioned here in the manual under "Updating BLOB Fields" (the last
Note):

http://www.elevatesoft.com/manual?action=mantopic&id=dbisam4&product=d&version=7&category=1&topic=30

--
Tim Young
Elevate Software
www.elevatesoft.com

Image