GLib RFC: Improve checking provided with --enable-mem-check

Robert Graham Merkel rgmerk@mira.net
Wed, 6 Jun 2001 17:25:21 +1000


On Wed, 06 Jun 2001 16:45:08 Phillip Shelton wrote:
> I am lost.  How does glib compare with glibc?
> 

glib and glibc are two seperate libraries.  Glib was
originally written as part of the gtk+ toolkit, and
provides a whole collection of useful routines, such as
basic data structures like lists, trees, and hash tables, and
some of which provide similar functionality to the C library (but
with a much nicer API), such as gmalloc.  GnuCash, like most gnome 
applications, uses glib wherever possible, as it is a well-designed 
library that saves a heck of a lot of time testing and debugging.

Amongst glib's tricks is a mode where it helps to detect common
memory allocation errors (when those memory allocation errors 
are made using glib's memory allocation functions such as gmalloc).  
However, this functionality is not as complete as it could be, and
Ben is proposing an enhancement to it which would allow more 
errors to be detected (and thus fixed faster :-) )

This is really not an issue that directly affects gnucash, 
Ben just raised it here because the spur for his proposal came 
out of debugging gnucash, I guess.


-- 
------------------------------------------------------------
Robert Merkel	                           rgmerk@mira.net

Go You Big Red Fire Engine
-- Unknown Audience Member at Adam Hills standup gig
------------------------------------------------------------