crategus / cl-cffi-gtk

cl-cffi-gtk is a Lisp binding to the GTK+ 3 library.
http://www.crategus.com/books/cl-cffi-gtk
145 stars 33 forks source link

Demo cairo clock needs little modification, why? #71

Open bigos opened 5 years ago

bigos commented 5 years ago

https://github.com/bigos/execnik/blob/4ad4b38433bb80d39e03077a25954f554ad3f487/execnik.lisp#L93

I had to comment out the above to make your example work.

I wonder why. I had similar issue in another experiment where I blindly followed C example. Is it possible that Lisp garbage collection also destroys it?

Ferada commented 5 years ago

Yes. That's not really related to Lisp GC, it simply should not be destroyed since it's still in use in the widget that's being drawn on, though the documentation doesn't explicitly say that I suppose.

stacksmith commented 5 years ago

Funny: I did the same exact thing yesterday...