Re: finalizers and stuff (Re: [Chicken-users] Cairo binding)

2008-03-11 Thread Hans Bulfone
hi, On Tue, Mar 11, 2008 at 06:53:14PM -0400, John Cowan wrote: > There are no guarantees about finalizers. You can call (gc #t) to > force them to be run, but you have to make sure that you control all > exit paths from the program, possibly including signals. with the thread-sleep! at the end

Re: finalizers and stuff (Re: [Chicken-users] Cairo binding)

2008-03-11 Thread John Cowan
Hans Bulfone scripsit: > but i'm not sure if it was the right decision now... i've had some problems > with finalizers not being invoked before the program terminates (and directfb > complains when not all objects are released properly). There are no guarantees about finalizers. You can call (

finalizers and stuff (Re: [Chicken-users] Cairo binding)

2008-03-11 Thread Hans Bulfone
hi, On Tue, Mar 11, 2008 at 07:25:22PM +, Luke McCarthy wrote: > A question for the list... > > In the current Cairo egg resources like the cairo context must be > explicitly destroyed (with cairo-destroy). Do you think it's a good idea to > put these under control of the garbage collector