|
From: | John Lenz |
Subject: | Re: [Chicken-users] finalizers |
Date: | Wed, 16 Mar 2005 04:37:24 +0000 |
On 03/15/05 14:56:47, John Lenz wrote:
I am working on making SWIG support finalizers (I committed some code into CVS today, but it is still in the testing phase).I think I have found a problem. (I am using 1.92). I was able to reproduce it with the attached test case. Inside finalizer.scm, if that (gc #t) line is commented out we get the expected behavior, both objects print out a finalizer line. If I uncomment that collection between setting the two to null, the finalizer for the second object is never called. It seems to me like when looking on the finalizer list, the finalizer for the second object is getting dropped or something.
Oh, I should also point out that if you first set b to #f, then run the gc, then set a to #f then run the gc, the expected result happens. It is only when you first collect a then collect b that the b finalizer is not run.
John
[Prev in Thread] | Current Thread | [Next in Thread] |