From yan.guiborat@caramail.com Fri May 18 09:28:50 2001
Received: from mail2.caramail.com (mail2.caramail.com [195.68.99.69])
	by swi.psy.uva.nl (8.11.2/8.11.2) with ESMTP id f4I7Sk322913
	for <prolog@swi.psy.uva.nl>; Fri, 18 May 2001 09:28:50 +0200 (MET DST)
Received: from caramail.com (www33.caramail.com [195.68.99.118])
	by mail2.caramail.com (8.8.8/8.8.8) with SMTP id JAA29675
	for prolog@swi.psy.uva.nl; Fri, 18 May 2001 09:29:33 -0100 (GMT)
Posted-Date: Fri, 18 May 2001 09:29:33 -0100 (GMT)
From: Yan Guiborat <yan.guiborat@caramail.com>
To: prolog@swi.psy.uva.nl
Message-ID: <990181739014558@caramail.com>
X-Mailer: Caramail - www.caramail.com
X-Originating-IP: [193.65.100.100]
Mime-Version: 1.0
Date: Fri, 18 May 2001 09:28:59 GMT+1
Content-Type: multipart/mixed; boundary="=_NextPart_Caramail_014558990181739_ID"
Subject: [SWIPL] Error embedding swi prolog in a C app.

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

--=_NextPart_Caramail_014558990181739_ID
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,

I made a small C progam looking like this.

main()
{
...
...
PL_initialize(..).
Parse_an_XML_File().
exit
}

The purpose of parsing the XML file is to get information
about some foreign predicates(name, arity, flag), wich will
be dynamically loaded, an them registered to the prolog
engine through PL_register_foreign().
I am parsing the XML using GNU libXML and sax API.
Sadly, when I try it, once the first callback function from
sax terminates, I get this error message from prolog:
"
[PROLOG SYSTEM ERROR: Thread 1
	Recursively received fatal signal 11

PROLOG STACK:
"
when this happens, I haven't even called
PL_register_foreign(), neither any of the foreign module
interface functions, nothing, only libXML and it's sax API.
Could someone help, please ?
I was wondering so what was hapenning when PL_initialize is
called. Is there a Fork made to launch swi-prolog in a new
process, or does it still belong to the initial one.
Great Thnks to any help.

Yan.


--------------------------------------
Yan Guiborat.
French Exchange Student,
Tampere University of Technology.
e-mail:yan.guiborat@caramail.com.       
--------------------------------------
______________________________________________________
Bo=EEte aux lettres - Caramail - http://www.caramail.com


--=_NextPart_Caramail_014558990181739_ID--

