Re: Segmentation Fault in g_malloc



Never mind. I had strlen on the same line as g_malloc and strlen was 
getting a segmentation fault on a null pointer.

John


On Wed, 16 Jun 2004, John J. Boyer wrote:

I'm using glib-2.4.1 and g_malloc for allocating space for keys in a hash 
table. This works for a while. Then g_malloc gives a segmentation fault. 
Do I have to call something else to give it enough memory to work with?

Thanks,
John




-- 
John J. Boyer; Executive Director, Chief Software Developer
Computers to Help People, Inc.
http://www.chpi.org
825 East Johnson; Madison, WI 53703





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