From jan@swi.psy.uva.nl  Tue Feb  1 17:41:05 2000
Received: from gollem.swi.psy.uva.nl (root@gollem [145.18.152.30])
	by swi.psy.uva.nl (8.9.3/8.9.3) with ESMTP id RAA21179;
	Tue, 1 Feb 2000 17:41:05 +0100 (MET)
Received: (from jan@localhost)
	by gollem.swi.psy.uva.nl (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) id RAA14047;
	Tue, 1 Feb 2000 17:41:15 +0100
Date: Tue, 1 Feb 2000 17:41:15 +0100
Message-Id: <200002011641.RAA14047@gollem.swi.psy.uva.nl>
From: Jan Wielemaker <jan@swi.psy.uva.nl>
Subject: Re: Problem with consult
To: Andrey Diatchkov <ad@dual.solvo.spb.su>, prolog@swi.psy.uva.nl
In-Reply-To: Andrey Diatchkov's message of Tue, 1 Feb 2000 17:24:23 +0300 (MSK)
Phone: +31 - 20 - 525 6121

> I can't execute consult(FileName) sometimes if exported procedure in
> FileName is no defined.
> 
> Example:
> file test_mod.pl
> ----------------
> :- use_module([
>                 test_mod2
>                 ]).
> 
> file test_mod2.pl
> -----------------
> :- module(test_mod2,[
>                 test/0
>                 ]).
> 
> test_mod2:test/0 is not defined.
> When i type consult(test_mod). (or [test_mod].) prolog is hanging. I use
> SwiProlog 3.3.0#12.

Thanks. Fixed. Until version 3.3.0#13, just don't make this mistake :-)

Please note you are working with the multi-threaded version!  I happen
to know from you, but even then you might use both.  This problem was
caused by a classical deadlock problem.

	Regards --- Jan

