![]() | ![]() Products ![]() ![]() ![]() ![]() |
Home » Technical Support » DBISAM Technical Support » Support Forums » DBISAM General » View Thread |
Messages 1 to 2 of 2 total |
![]() |
Thu, Jul 17 2008 9:21 AM | Permanent 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 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. ![]() | 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 |
This web page was last updated on Wednesday, July 2, 2025 at 06:46 PM | Privacy Policy![]() © 2025 Elevate Software, Inc. All Rights Reserved Questions or comments ? ![]() |