Re: glib g_malloc() and ram.



Hi,

monkeyiq <monkeyiq dingoblue net au> writes:

>    I am converting a bunch of tools to a shared library, to make a long
> story short I looked at
> glib to see what it does when malloc() fails in the library, it seems
> from tracing g_malloc()
> that it calls g_logv() through g_error() at line 179 of gmem.c in
> glib-1.2.8.
> 
> >From what I can see this only reports the error, and then glib assumes
> that the allocation
> was ok... 

No, g_error() exits the application after spitting out it's error message.


Salut, Sven






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