Re-sorting FBL_ArraySet?
Arthur Clemens
aclemens at xs4all.nl
Mon Dec 1 07:56:37 CST 2003
On 1-dec-03, at 1:09, Ruslan Zasukhin wrote:
> on 12/1/03 12:57 AM, Arthur Clemens at aclemens at xs4all.nl wrote:
>
>> and in DisplaySet.mm:
>>
>> - (void)setShownSetToArraySet:(FBL_ArraySet*)arraySet
>> if (mShownSet != nil) {
>> delete mShownSet;
> ^^^^^^^^^^^^^^^^^^
>
> problem is here.
>
> You try delete Array that Valentina already have delete!
Of course not: I'm checking if it is nil (that is NULL). So if it is
deleted by the Sort function, it is not deleted a second time.
I find it strange that the sorted arraySet first counts 8 records, but
after passing it as parameter suddenly has 0 records.
Arthur
More information about the Valentina
mailing list