More on SrPersist buffers


Subject: More on SrPersist buffers
From: Paul Steckler (steck@ccs.neu.edu)
Date: Wed Dec 05 2001 - 13:31:04 EST


At lunch, I suggested to Will that perhaps I'd included a procedure to
deallocate SrPersist buffers. I couldn't recall at the time.

Alas, there is no procedure.

If there were, it might cause more grief than buy more joy. Suppose a
buffer were explicitly deallocated, and still bound to a result set
column. A subsequent fetch could write to the deallocated storage, with
catastrophic results.

I could create such a procedure, which would have to be used carefully.
A SrPersist client could then prevent storage leaks. Of course, Scheme
programmers shouldn't have to worry about such things.

For the CGI scripts where we've used SrPersist, the uncollectability of
buffers was not an issue. It could become so in larger, longer-running
programs.

-- Paul



This archive was generated by hypermail 2b28 : Wed Dec 05 2001 - 13:31:46 EST