[ANN] Valentina 2.5.9 uploaded.

Ruslan Zasukhin sunshine at public.kherson.ua
Wed Apr 11 02:04:34 CDT 2007


On 11/4/07 1:58 AM, "jda" <jda at his.com> wrote:

Hi Jon,
 
> I think this is the bug that cause the segment error, but I have a
> corrected workaround.
> 
> I have been saving a blob with this code
> 
>            myCursor.BlobField(fieldName).writeRawData(propertyValue)
> 
> (propertyValue is a variant (RB) that holds a string).
> 
> Up to 2.5.9 it worked.
> 
> With 2.5.9, if propertyValue is empty it corrupts the blob field (you
> get the segment error I reported).
> 
> Changing the code to
> 
>          if propertyValue.StringValue = "" then
>            myCursor.BlobField(fieldName).SetBlank
>          else
>            myCursor.BlobField(fieldName).writeRawData(propertyValue)
>          end if

What you do after this? Tbl.AddRecord() or tbl.UpdateRecord() ?
 
>   seems to work OK.
> 
> I realize .setBlank is the proper way to do things. But setting the
> blob to empty shouldn't corrupt the database, should it?

Kirill, try reproduce this in V4RB TEST project.
or even better in kernel_test c++ tests.


-- 
Best regards,

Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc

Valentina - Joining Worlds of Information
http://www.paradigmasoft.com

[I feel the need: the need for speed]




More information about the Valentina mailing list