main logo
Subject: Re: Followup: [VSDK Macho] Bug in VDK_Boolean
Author: Totte Alm
Posted: 2002/05/27 23:46:27
 
View Entire Thread
New Search


On m=E5ndag, maj 27, 2002, at 10:24 , Ruslan Zasukhin wrote:

> on 5/27/02 22:18, Totte Alm at totte (AT) code66 .D.OT se wrote:
>
>>> Hello Ruslan,
>>>
>>> I have discovered a VERY strange behavior with VDK_Boolean under =
VSDK
>>> Macho,
>>>
>>> Fields that are set to true, then the record is updated with
>>> UpdateRecord, and then I create a NEW record with SetBlank(), then
>>> values "follow" to that record, and if I clear them, flags are =
cleared
>>> in the previous record too.
>>>
>>> I've spent two days tracking this down as I thouight there were =
logic
>>> errors in my code, but I've tracelogged my operations and logged=20
>>> values
>>> to disc, so I can see it happen.
>>>
>>
>> I replaced ALL VDK_Boolean with VDK_Short the the database and =
changed
>> all code that referred to it, and it worked!!
>>
>> So, I can hereby report:
>> Bug in VSDK_MAcho 1.8.10 VDK_Boolean IS confirmed.
>
> 1) Why you underline that this is VSDK MACHO?
> In CARBON Boolean field works or you did not try ?
>
> 2) You describe really strange thing.
> Am I right that you do
>

Do the following

Big loop
- (get data from file)
- SetBlank (HolderRecord)

( Second time you come here, you have the values of the previous=20
baseobject in some booleans, and if you clear them, the previous=20
BaseObjects values gets cleared)

- set some fields, Ullong, String, short and Boolean
-AddRecord
-create other BaseObject (that has HolderRecord Baseobject as parent)
-Add that record
-change some values in the HolderRecord, Ullong, boolean
-UpdateRecord

end loop

Flush

> -- Goto some existed record
> -- Set boolFld =3D true
> -- BaseObject.UpdateRecord
>
> -- BaseObject.SetBlank
> -- boolFld =3D false
> -- BaseObject.AddRecord()
>
> And here you see that value for prev record also cleared???
>
>
>> (no need to fix, as I dont wanna change back again!
>
> This is joke?
>

Nope, just NO PANIC, as I have workaround.
>
> --
> Best regards,
> Ruslan Zasukhin
>
> -------------------------
> Paradigma.
>
> e-mail: ruslan@paradigmasoft.com
> web : http://www.paradigmasoft.com
>
> To subscribe to the Valentina mail list
> send a letter to valentina-on (AT) lists .D.OT macserve.net
>
>
>
--------------------------------------------------------------------------=
--------------------
Bugs don't die - they just go to Redmond to regroup.
 
©2002 Totte Alm
<-- Prior Message New Search Next Message -->