AW: do the container types use g_malloc and co ?


you could tell glib to use your own memory functions by providing a custom 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...


-----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.


gtk-list mailing list
gtk-list gnome org

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