Re: Simple GDK app segfaults for unknown reason

2006-01-20 Thread László Monda
Hey Gyözö, On Fri, 2006-01-20 at 18:24 +0100, Gyözö Both wrote: > hi, > > i'd say you forgot to end the call with a NULL. also, as far as i know > the standard way to use GError is to have a 'GError *error;' variable > and then pass the pointer to it. in your case: > > GError *error = NULL; > Gd

Re: Simple GDK app segfaults for unknown reason

2006-01-20 Thread Gyözö Both
hi, i'd say you forgot to end the call with a NULL. also, as far as i know the standard way to use GError is to have a 'GError *error;' variable and then pass the pointer to it. in your case: GError *error = NULL; GdkPixbuf *pixbuf = gdk_pixbuf_new_from_file("input.jpg", &error); gdk_pixbuf_save(

Re: Simple GDK app segfaults for unknown reason

2006-01-20 Thread David Necas (Yeti)
On Fri, Jan 20, 2006 at 11:36:38AM +0100, László Monda wrote: > Hi List, > > I've just written a simple GDK application that basically converts an > input JPEG image to a BMP using a Pixbuf. > > Unfortunately it segfaults. > > 8< > > #include > > int main(int argc, char *argv[]) > { >

Re: Simple GDK app segfaults for unknown reason

2006-01-20 Thread Andreas Stricker
Laszls Monda schrieb: Hi List, I've just written a simple GDK application that basically converts an input JPEG image to a BMP using a Pixbuf. Unfortunately it segfaults. 8< #include int main(int argc, char *argv[]) { gdk_init(&argc, &argv); GError **error = NULL; GdkPi

Re: Simple GDK app segfaults for unknown reason

2006-01-20 Thread László Monda
On Fri, 2006-01-20 at 11:55 +0100, Colossus wrote: > László Monda wrote: > > Could someone here explain why does it segfault? > > Compile it with the -g flag and then run it in gdb. When the segfault > occurs issue bt. You should have the line where the segfault occurs. Program received signal S

Re: Simple GDK app segfaults for unknown reason

2006-01-20 Thread Colossus
László Monda wrote: Could someone here explain why does it segfault? Compile it with the -g flag and then run it in gdb. When the segfault occurs issue bt. You should have the line where the segfault occurs. -- Colossus Xarchiver, a GTK2 only archive manager - http://xarchiver.sourceforge.ne

Simple GDK app segfaults for unknown reason

2006-01-20 Thread László Monda
Hi List, I've just written a simple GDK application that basically converts an input JPEG image to a BMP using a Pixbuf. Unfortunately it segfaults. 8< #include int main(int argc, char *argv[]) { gdk_init(&argc, &argv); GError **error = NULL; GdkPixbuf *pixbuf = gdk_pixbu