From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Neil Jerram Newsgroups: gmane.lisp.guile.user Subject: Re: behaviour of scm_run_hook Date: Sun, 04 Sep 2005 10:49:46 +0100 Message-ID: <87d5npb1s5.fsf@ossau.uklinux.net> References: <60073.24.150.125.164.1125692241.squirrel@www.math.mcmaster.ca> <87oe7ab4f2.fsf@ossau.uklinux.net> <63627.24.150.125.164.1125767053.squirrel@www.math.mcmaster.ca> <87k6hyapxg.fsf@ossau.uklinux.net> <60845.24.150.125.164.1125784894.squirrel@www.math.mcmaster.ca> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1125827647 5272 80.91.229.2 (4 Sep 2005 09:54:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 4 Sep 2005 09:54:07 +0000 (UTC) Cc: Guile Users Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sun Sep 04 11:53:56 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EBrBi-0005AR-05 for guile-user@m.gmane.org; Sun, 04 Sep 2005 11:53:22 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EBrG5-0002py-FG for guile-user@m.gmane.org; Sun, 04 Sep 2005 05:57:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EBrCz-0001qp-Hr for guile-user@gnu.org; Sun, 04 Sep 2005 05:54:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EBrCn-0001kp-7n for guile-user@gnu.org; Sun, 04 Sep 2005 05:54:38 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EBrCk-0001Z1-IO for guile-user@gnu.org; Sun, 04 Sep 2005 05:54:27 -0400 Original-Received: from [80.84.72.33] (helo=mail3.uklinux.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EBrBp-0006oY-Vn for guile-user@gnu.org; Sun, 04 Sep 2005 05:53:30 -0400 Original-Received: from laruns (host81-130-141-16.in-addr.btopenworld.com [81.130.141.16]) by mail3.uklinux.net (Postfix) with ESMTP id B8FF5409FAA; Sun, 4 Sep 2005 09:49:52 +0000 (UTC) Original-Received: from laruns (laruns [127.0.0.1]) by laruns (Postfix) with ESMTP id 48C8C6F71B; Sun, 4 Sep 2005 10:49:46 +0100 (BST) Original-To: alberj@math.mcmaster.ca In-Reply-To: <60845.24.150.125.164.1125784894.squirrel@www.math.mcmaster.ca> (alberj@math.mcmaster.ca's message of "Sat, 3 Sep 2005 18:01:34 -0400 (EDT)") User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:4714 Archived-At: alberj@math.mcmaster.ca writes: > Unfortunately, it didn't work. I'm quite sure GC was not the problem, I > checked using > > (add-hook! after-gc-hook (lambda () (display "Garbage > collection\n"))) You mean that GC was not the problem because a GC never happened? Fair enough, but you will still need the protection in future, of course (unless your application is _very_ short lived :-)). > > and nothing was displayed. OK, in that case can you show us the code which you use in C to run the hook (which you say doesn't work) and the corresponding Scheme code (which does work). Neil _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user