[plt-scheme] register-finalizer wills only executed first time program is Run in DrScheme session

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Tue May 26 07:16:47 EDT 2009

I don't know if this is it, but one difference between the two
situations you describe is that drscheme creates a new custodian for
the user's program (and shuts down the old one) each time Run is
clicked.

Robby

On Tue, May 26, 2009 at 5:06 AM, Neil Van Dyke <neil at neilvandyke.org> wrote:
> Thanks.  I have some fancy generalized code in a different library (fast
> CGI) that could be adapted for this purpose.
>
> However, for this library (you guessed it: database), I would prefer to use
> wills from "register-finalizer".
>
> I wonder whether there is something I am doing wrong, or a single bug that,
> once fixed, will make my wills execute reliably.
>
>
> Noel Welsh wrote at 05/26/2009 05:53 AM:
>>
>> I suggest using different mechanisms to ensure your database
>> connections are never left open. I have never had much success with
>> wills.
>>
>
> _________________________________________________
>  For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>


Posted on the users mailing list.