Hi,
Still crash after a while.. but needs more time..
What could be?
Thanks
Às 10:41 de 02/03/2017, Gabriele Greco escreveu:
Now, application crash after start, but i think that is because i make
the unref of pixbuf, and in next expose event, fails (i think)...
GdkPixbuf-CRITICAL **:
>
>
> Now, application crash after start, but i think that is because i make
> the unref of pixbuf, and in next expose event, fails (i think)...
>
> GdkPixbuf-CRITICAL **: gdk_pixbuf_scale_simple: assertion 'GDK_IS_PIXBUF
> (src)' failed
This happens because your original "pixbuf" is a global
Thank you very much!!
I'm not sure if i have to do this every time an expose event occurs.. I
think that i just need on start of application.. But i test on start of
application, i i don't have widget->allocation values, to make the resize..
Now, application crash after start, but i think that
>
> This works, but application blocks after a while..
>
I'm quite sure the problem is that you are leaking at least 2 pixbuf and a
pixmap for every expose event your app receives, and anyway, are you sure
you have to do it every time an expose event is thrown and not only when
the window is
Hi,
I have made progress, i use this function to make the resize: pixbuf =
gdk_pixbuf_scale_simple(pixbuf, widget->allocation.width,
widget->allocation.height, GDK_INTERP_BILINEAR);
This works, but application blocks after a while..
Here is the Expose event function:
void