Re-sorting FBL_ArraySet?
Ruslan Zasukhin
sunshine at public.kherson.ua
Mon Dec 1 02:09:46 CST 2003
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!
I have told, Sort() function DELETE inSet which it get.
Yes, this is not usually, but taking into account a lots of RAM which they
can eat, this is our payment.
> }
> //NSLog(@"arraySet = %d", arraySet->GetCount()); // Cannot: get
> crash: "pure virtual function called"
> mShownSet = new FBL_ArraySet(*arraySet);
> NSLog(@"mShownSet = %d", mShownSet->GetCount()); // I get zero
> count here!!!!
> }
>
> So in passing the arraySet, I cannot call GetCount() on it, and the
> newly created mShownSet has zero items!
> I use the same way of passing the bitset of all found records to
> mShownSet, and I have no problems there.
>
> I am very puzzled. Perhaps a keen eye can help me out.
--
Best regards,
Ruslan Zasukhin [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com
To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------
More information about the Valentina
mailing list