From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id MAA04323; Mon, 14 Apr 2003 12:11:13 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id MAA04410 for ; Mon, 14 Apr 2003 12:11:11 +0200 (MET DST) Received: from pat.uio.no (pat.uio.no [129.240.130.16]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h3EABBX13183 for ; Mon, 14 Apr 2003 12:11:11 +0200 (MET DST) Received: from goggins.uio.no ([129.240.201.2]) by pat.uio.no with esmtp (Exim 2.12 #7) id 1950ve-0004SD-00 for caml-list@inria.fr; Mon, 14 Apr 2003 12:11:10 +0200 Received: from itherther.simula.no ([129.240.228.187]) by goggins.uio.no with esmtp (Exim 2.12 #7) id 1950vd-0003u0-00 for caml-list@inria.fr; Mon, 14 Apr 2003 12:11:09 +0200 Received: from hans by itherther.simula.no with local (Exim 3.36 #1) id 1950vd-00047P-00 for caml-list@inria.fr; Mon, 14 Apr 2003 12:11:09 +0200 To: caml-list@inria.fr Subject: [Caml-list] Dynlink and memory management From: Hans Ole Rafaelsen Date: 14 Apr 2003 12:11:09 +0200 Message-ID: <3azadetl77m.fsf@itherther.simula.no> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam: no; 0.00; rafaelsen:01 simula:01 dynlink:01 unload:01 garbage:01 module:03 unit:03 trick:03 loaded:04 functions:05 seems:05 memory:09 seem:10 hello:15 code:15 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hello, I have a question with regard to memory management and using the Dynlink module. Is there some way to "unload" the code once you are done using it? It seems like a reference is kept to the loaded unit, thus it never gets garbagecollected. The Dynlink module does not seem to have any functions which can be called to brake this reference. Any trick to brake this reference and make the loaded code garbage collected would be appreciated. Kindest regards, Hans Ole Rafaelsen ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners