Untimely garbage collection

Sean Hinde <>
Sun Jul 14 22:56:26 CEST 2002

> Suddenly this has stopped working.  My C drivers are
> seizing when they run out of binaries, and all of the
> binaries have a refc of 3:  one for the driver that
> "owns" the binary, and one for each gen_server process.

I had this problem once when developing my (now abandoned - mnesia got even
better :) ) SQL driver. The solution turned out to be sipmly that I was
testing from the shell which also retained the binaries in it's result

Otherwise binaries got GC'd very quickly and I could rely on the refc no


This email (including attachments) is confidential.  If you have received
this email in error please notify the sender immediately and delete this
email from your system without copying or disseminating it or placing any
reliance upon its contents.  We cannot accept liability for any breaches of
confidence arising through use of email.  Any opinions expressed in this
email (including attachments) are those of the author and do not necessarily
reflect our opinions.  We will not accept responsibility for any commitments
made by our employees outside the scope of our business.  We do not warrant
the accuracy or completeness of such information.

More information about the erlang-questions mailing list