Re: Are NIF resources meant to be destroyed immediately on GC?

Max Lapshin <[email protected]>
Newsgroups gmane.comp.lang.erlang.general
Message-ID <CAMxVRxChuoL=M6c0+zVNRz57Srfexmf++aXNS11SHvRZePhkTA@mail.gmail.com>
It is always a good idea to clear used resources explicitly if they
are expensive just like you close database connection.


Destructor will be called, maybe you just haven't released after
enif_make_resource? It is a very common caveat.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.