On 11/04/2014 11:14 PM, Mike Wey wrote:
The GISOBJECT (object) failed error go's away when i change:
...code...
I still need to investigate as to whats going on when using delete.
I found what was causing this. (GISOBJECT (object) failed error)
GtkD stores a weak reference to the D Object in the C struct along with
a callback, to notify use when this weak reference is destroyed, eg when
the C struct is destroyed.
In the code Posted by Diez the D object was destroyed/freed, but the c
struct wasn't destroyed because the GtkImage still hed an reference to it.
So when GtkImage tried to destroy the Pixbuf when a new one was set, it
would "try to" call the callback set by gtkD which failed, causing the
errors.