C (258/304)

From:Rod Schnell
Date:30 Aug 2000 at 14:47:42
Subject:Re: Freeing list with Classact

----- Original Message -----
From: "Jack York" <jyork@voyager.net>
To: <amiga-c@egroups.com>
Sent: Wednesday, August 30, 2000 7:17 AM
Subject: ga-c] Re: Freeing list with Cla

>
> Hello Rod
>
> On 30-Aug-00, Rod Schnell wrote:
>
> > Well, I managed to duplicate your listbrowser problem tonight. ClassAct
>
> Very glad to hear that. :)
>
> > uses an internal memory for most gadgets, including listbrowser. I have
to
> > guess it's a global pool shared between all gadgets. However, there is a
> > simple solution. Just use a seperate pool for each listbrowser with huge
> > numbers of nodes. For example...
>
> > while(i < last)
> > {
> > if(node = AllocListBrowserNode(2,
> > LBNA_MemPool, pool, // This line does the trick
>
> When I try this ^, I get and error message of undefined symbol. The docs
> don't have this tag listed. Do I need to do something else to use it?
>

You probably just need more recent includes, maybe more recent classes too.
I'm running late betas myself, but I think that tag's been around for quite
a while. I'd send you the versions I have, except I'm not entirely certain
what the status of ClassAct is right now, especially now that ReAction has
been released.

> > Nothing needs to change in your ListBrowser creation or node freeing
> > code, just create a pool and feed it's pointer to
AllocListBrowserNode().
> > ListBrowser will handle the rest.
>
> So freeing the listbrowser will delete the pool too?
>

Er no, you do need to delete the pool.
Regards, Rod