AW: do the container types use g_malloc and co ?



Hi,

you could tell glib to use your own memory functions by providing a custom GMemVTable:
http://library.gnome.org/devel/glib/stable/glib-Memory-Allocation.html#GMemVTable

I don't know if this is recommended but it should work.
I would be interested myself to know if there is a way to change the behaviour of the glib built-in alloc functions...

Cheers,
Lutz

-----Ursprüngliche Nachricht-----
Von: Martin Kalbfuß [mailto:ma kalbfuss web de] 
Gesendet: Mittwoch, 11. November 2009 00:26
An: Gtk+
Betreff: do the container types use g_malloc and co ?

I wonder if it it's possible not to automatically abort the program if
there's not enough memory. Not that it's a bad behavior. But I'm mixing
to different apis and the other lib doesn't use the glib memory
functions. I would prefer to have a consistent behavior.

And what will show up when this happens?
If I would know I could exit by myself with the same results. When
there's not enough memory.

Thanks.

_______________________________________________
gtk-list mailing list
gtk-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-list


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]