From stepheng@australia.edu Thu Dec 13 11:02:06 2001
Received: from australia.edu (gold.internet-media.net [216.15.179.130])
	by swi.psy.uva.nl (8.11.6/8.11.2) with SMTP id fBDA25520408
	for <prolog@swi.psy.uva.nl>; Thu, 13 Dec 2001 11:02:06 +0100 (MET)
Received: from arisu ([202.67.72.11]) by australia.edu ; Thu, 13 Dec 2001 18:38:23 -0600
Reply-To: <stepheng@australia.edu>
From: "Stephen Gilmour" <stepheng@australia.edu>
To: <prolog@swi.psy.uva.nl>
Subject: RE: [SWIPL] SWI-cpp.h throwing an exception for an unknown reason.
Date: Thu, 13 Dec 2001 21:02:07 +1100
Message-ID: <KGEJIKMCOEAJFDOPBPGAMEBHCBAA.stepheng@australia.edu>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
In-Reply-To: <200112130953.fBD9rwi32043@gollem.swi.psy.uva.nl>

Thanks.  I found the answer.  I have to have the PlEngine statement in the
same function as the PlTermv declaration.  Works well now.

Thanks
Steve

-----Original Message-----
From: Jan Wielemaker [mailto:jan@swi.psy.uva.nl]
Sent: Thursday, 13 December 2001 8:54 PM
To: stepheng@australia.edu; prolog@swi.psy.uva.nl;
prolog-request@swi.psy.uva.nl
Subject: Re: [SWIPL] SWI-cpp.h throwing an exception for an unknown
reason.


> This class keeps throwing an exception and I don't know why.  It happens
on
> line 20:
>
> PlTermv av(10);
>
> I have no idea why this is occuring and any help would be useful.

The program is incomplete, which makes testing a bit hard.  Generally
this problem is caused by the engine failed to load or already destroyed
or, if you call Prolog in a loop, failing to reclaim term-handles using
PlFrame.  See manual.

	Cheers --- Jan

