unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: CDDP 40 - TICE <cddp40.tice@ac-bordeaux.fr>
Cc: Brett Viren <bv@bnl.gov>, Guile user <guile-user@gnu.org>
Subject: Re: C++ application linked with guile dos not quite
Date: 19 Jun 2002 10:02:10 +0200	[thread overview]
Message-ID: <1024473732.20137.40.camel@tice> (raw)
In-Reply-To: <87u1o08plp.fsf@zagadka.ping.de>

Le mar 18/06/2002 à 19:26, Marius Vollmer a écrit :
> Brett Viren <bv@bnl.gov> writes:
> 
> > Maybe if you are calling scm_protect_object() but failing to call
> > scm_unprotect_object() then the garbage collector is waiting for the
> > reference count to go to zero?  (I'm no expert, so take this with a
> > grain of salt).
> 
> No, this wont happen.  There must be some other cause.  It would help
> to know in what way the application normally exits, and on what point
> it stops.
> 
> I.e., does it return from gtk_main?  Or does it hang in _exit?

Ok, here is the exact situation:


void 
main_prog(int argc, char* argv[])
{
  [..]
  gtk_main();
  g_print("Do we quit gtk_main?\n");
}

int main(int argc, char* argv[])
{
	gh_enter(argc, argv, main_prog);
	g_print ("Can we quit?");
	return 0;
}


"Do we quit gtk_main' is printed but not "Can we quit?"
But I guess "Can we quit" has not to be printed.

Also some remarks about how guile scripts are used into drgenius, guile
scripts are embedded into object plugged in a geometric figures logic
and area.
The geometric figures are user interactive, it means guile scripts are
evaluated hundred of time when the user plays interactively with the
figure. Actually I notice, DrGenius may not hang when quitting if the
user just loads a figure (with scripts) then directly quit.

(The following screenshot gives an idea how the scripts are plugged in a
figure http://www.ofset.org/drgenius/sshot4.png )

Hilaire


 
-- 
Ingénierie Éducative
CDDP des Landes


_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user


  reply	other threads:[~2002-06-19  8:02 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-17 13:24 C++ application linked with guile dos not quite Hilaire Fernandes
2002-06-18  8:25 ` CDDP 40 - TICE
2002-06-18 13:43   ` Brett Viren
2002-06-18 14:37     ` Hilaire Fernandes
2002-06-18 14:45       ` Brett Viren
2002-06-18 17:26     ` Marius Vollmer
2002-06-19  8:02       ` CDDP 40 - TICE [this message]
2002-06-19 11:14         ` Marius Vollmer
2002-06-19 13:19           ` CDDP 40 - TICE
2002-06-19 14:09             ` Brett Viren
2002-06-19 16:42               ` CDDP 40 - TICE
  -- strict thread matches above, loose matches on Subject: below --
2002-06-17 13:23 CDDP

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1024473732.20137.40.camel@tice \
    --to=cddp40.tice@ac-bordeaux.fr \
    --cc=bv@bnl.gov \
    --cc=guile-user@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).