Re: C++ and Glib
- From: Havoc Pennington <hp redhat com>
- To: "Tom Browder" <TBrowder home com>
- Cc: <gtk-list gnome org>
- Subject: Re: C++ and Glib
- Date: 29 Dec 2000 18:22:26 -0500
"Tom Browder" <tbrowder home com> writes:
> I'm having problems with the GSList allocator when I use it within multiple
> instances of a class. It seems to lose track of the structure of the
> central memory chunk. I have a work-around for now by merely causing the
> allocator to use malloc to give me a chunk of memory one list item at a
> time, but I'm sure there is a correct solution. (I have tried compiling
> glib without thread support just to see if that would affect things but it
> didn't)
>
> There also seems to be a problem with C++ when encountering the common
> function g_slist_prepend (list, data) if list is NULL (it seems it ought to
> work). Any thoughts?
>
Not enough details to tell what's happening. I think it's safe to say
that GSList is used in around a million lines of code with no known
bugs though - so I would first suspect improper use of GSList.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]