Re: Valgrind is grinding my gears

2013-11-16 Thread Bernhard Schuster
...@gmail.com To: David Buchan pdbuc...@yahoo.com Cc: gtk-app-devel-list list gtk-app-devel-list@gnome.org Sent: Tuesday, November 5, 2013 4:56 PM Subject: Re: Valgrind is grinding my gears I have a valgrind file here I use for my large gtk2 program: http://www.vips.ecs.soton.ac.uk

Re: Valgrind is grinding my gears

2013-11-06 Thread Bernhard Schuster
Buchan pdbuc...@yahoo.com Cc: gtk-app-devel-list list gtk-app-devel-list@gnome.org Sent: Tuesday, November 5, 2013 2:51 PM Subject: Re: Valgrind is grinding my gears On Tue, Nov 05, 2013 at 09:47:13AM -0800, David Buchan wrote: But when I invoke Valgrind at runtime, I get a lot of errors

Re: Valgrind is grinding my gears

2013-11-06 Thread Bernhard Schuster
my struct (a lot, in fact). Could this be the cause? From: David Buchan pdbuc...@yahoo.com To: gtk-app-devel-list list gtk-app-devel-list@gnome.org Sent: Tuesday, November 5, 2013 1:09 PM Subject: Re: Valgrind is grinding my gears Perhaps relevant

Valgrind is grinding my gears

2013-11-05 Thread David Buchan
I have a rather large program I've written in C language which uses GTK+2. My Makefile has: CCFLAGS = `pkg-config --cflags gtk+-2.0 gmodule-2.0` LIBS    = `pkg-config --libs   gtk+-2.0 gmodule-2.0` GCC compiles it without warnings using flags: -Wall -O -Wuninitialized My program has several

Re: Valgrind is grinding my gears

2013-11-05 Thread David Buchan
trouble with g-sliced memory? From: David Buchan pdbuc...@yahoo.com To: gtk-app-devel-list list gtk-app-devel-list@gnome.org Sent: Tuesday, November 5, 2013 12:47 PM Subject: Valgrind is grinding my gears I have a rather large program I've written in C language

Re: Valgrind is grinding my gears

2013-11-05 Thread David Buchan
-devel-list@gnome.org Sent: Tuesday, November 5, 2013 1:09 PM Subject: Re: Valgrind is grinding my gears Perhaps relevant, is that I have a large struct which I use to pass stuff amongst functions and callbacks and I allocate memory for it in main() thus:   // Allocate data structure   data

Re: Valgrind is grinding my gears

2013-11-05 Thread David Nečas
On Tue, Nov 05, 2013 at 09:47:13AM -0800, David Buchan wrote: But when I invoke Valgrind at runtime, I get a lot of errors which I can't make any sense of. I have grabbed a small sample of them here: http://pdbuchan.com/valgrind.txt I don't like ignoring errors and warnings, but I don't

Re: Valgrind is grinding my gears

2013-11-05 Thread David Buchan
, November 5, 2013 2:51 PM Subject: Re: Valgrind is grinding my gears On Tue, Nov 05, 2013 at 09:47:13AM -0800, David Buchan wrote: But when I invoke Valgrind at runtime, I get a lot of errors which I can't make any sense of. I have grabbed a small sample of them here: http://pdbuchan.com

Re: Valgrind is grinding my gears

2013-11-05 Thread David Buchan
: Re: Valgrind is grinding my gears No, as soon as you use GObject derived types (or call g_types_init/gtk_init) the class structures for all your gobject derived classes will be created _once_. This unevitable, but nothing to worry about (same for GThread and friends), just be aware

Re: Valgrind is grinding my gears

2013-11-05 Thread jcupitt
schuster.bernh...@gmail.com To: David Buchan pdbuc...@yahoo.com Cc: David Nečas y...@physics.muni.cz; gtk-app-devel-list list gtk-app-devel-list@gnome.org Sent: Tuesday, November 5, 2013 3:59 PM Subject: Re: Valgrind is grinding my gears No, as soon as you use GObject derived types (or call

Re: Valgrind is grinding my gears

2013-11-05 Thread David Buchan
Great! Thanks! Dave From: jcup...@gmail.com jcup...@gmail.com To: David Buchan pdbuc...@yahoo.com Cc: gtk-app-devel-list list gtk-app-devel-list@gnome.org Sent: Tuesday, November 5, 2013 4:56 PM Subject: Re: Valgrind is grinding my gears I have