On Mon, Jun 06, 2005 at 04:21:33PM +0100, y g wrote:
> 
> ok i see what you mean... but the following still seg faults... no
> warnings this time...
> 
> static void
> save_image(GtkWidget* widget, gpointer user_data)
> {
>   GdkPixbuf* pixbuf;
> 
>   g_print("Saving image...\n");
>   //gdk_pixbuf_save(gdk_pixbuf_get_from_drawable(NULL,
> GDK_DRAWABLE(pixmap), NULL, 0, 0, 0, 0, 600, 400), "temp.bmp", "bmp",
> NULL);
>   pixbuf = gdk_pixbuf_get_from_drawable(NULL, GDK_DRAWABLE(pixmap),
> gdk_drawable_get_colormap(GDK_DRAWABLE(pixmap)), 0, 0, 0, 0, 600,
> 400);
>   gdk_pixbuf_save(pixbuf, "temp.bmp", "bmp", NULL);
>   g_object_unref(pixbuf);
> }

Well, I can't see why this variant crashes -- so I compiled
it and run under valgrind, and it didn't crash and valgrind
even didn't print any (relevant) error.  If other image
formats crash too for you, you probably have to use debugger
to find out what's going on...

Yeti


--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to