Remark is below...
> The problem is that '#' is inherently non-shared, as you discovered.
> Therefore, the Correct Fix (tm) seems to:
>
> . Create a new structure:
>
> struct {
> record_t *shared;
> /* Private data, pertaining to this search */
> gint count;
> };
>
> . Adapt all the code to use that structure instead of the original record_t
> for everything pertaining to records.
>
> Don't forget to walloc() this structure, not malloc() it for performance
> and memory fragmentation reasons.
>
> What do you say?
Such a structure can be attached to each row in the searches and you can
tell the CList/CTree to call a special function to free the struct when
the row is removed. This can be wittnessed I believe in the fileinfo
table and in one of the stats tables (uploads or search stats).
--
Richard Eckart <[EMAIL PROTECTED]>
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Gtk-gnutella-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel