Re: segmentation fault when trying to save a pixbuf into a file



On Tuesday 21 June 2005 12:59, y g wrote:

I had posted in the past but with no luck about segmentation faults
that I am getting when trying to save a pixbuf into a file. With a bit
more debugging this is the error I am getting when I try:
gdk_pixbuf_save(pixbuf, "temp.bmp", "bmp", NULL);

Program received signal SIGSEGV, Segmentation fault.
 ...

gdk_pixbuf_save() is a vararg function. Compare your function call to the API 
reference - you're missing a NULL terminator there in the vararg part.

Cheers
 -Tim



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