From liraola@opera.dia.fi.upm.es  Wed Jun  2 12:09:38 1999
Received: from goofy.fi.upm.es (goofy.fi.upm.es [138.100.8.23])
	by swi.swi.psy.uva.nl (8.9.3/8.9.3) with ESMTP id MAA12439
	for <prolog@swi.psy.uva.nl>; Wed, 2 Jun 1999 12:09:34 +0200 (MET DST)
Received: from conversion.relay.fi.upm.es by relay.fi.upm.es
 (PMDF V5.2-32 #33254) id <01JBXAAU25M80008ZH@relay.fi.upm.es> for
 prolog@swi.psy.uva.nl; Wed, 2 Jun 1999 12:09:25 MET-DST
Received: from opera.dia.fi.upm.es (opera.dia.fi.upm.es [138.100.11.43])
 by relay.fi.upm.es (PMDF V5.2-32 #33254)
 with ESMTP id <01JBXAATPS4I000ARB@relay.fi.upm.es> for prolog@swi.psy.uva.nl;
 Wed, 02 Jun 1999 12:09:25 +0200 (MET-DST)
Received: from localhost by opera.dia.fi.upm.es (8.8.4/FI-4.1) Wed,
 2 Jun 1999 09:32:47 +0100 (WET DST)
Date: Wed, 02 Jun 1999 09:32:46 +0100 (WET DST)
From: Luis Iraola Moreno <liraola@opera.dia.fi.upm.es>
Subject: Embedding troubles
X-Sender: liraola@opera
To: prolog@swi.psy.uva.nl
Message-id: <Pine.SOL.3.95.990602091536.539D-100000@opera>
MIME-version: 1.0
Content-type: TEXT/PLAIN; charset=US-ASCII


Hi everyone,

I have been successfully embedding Prolog code within C++ applications
using SWI 2.9.11 and VC++ 5.0 under Windows NT 4. My problem arises when
trying to embed the same Prolog code using now SWI 3.2.7.

After generating the corresponding QLF file with qsave_state/1 (using no
options but specifying now the '.qlf' extension), and replacing the old
(2.9.11) 'libpl.dll' with the new one, the call to PL_intialise() now
stops the C++ application exiting with code 2.

The same code (Prolog and C++) works fine with version 2.9.11. I have
tried to use the QLF file generated by 3.2.7 with the 2.9.11 libpl.dll and
then I get the same exit code plus the explanation: 

FATAL ERROR:
		header script too long (> 100 lines)

(I know that since 3.2.0 this message box does not appear, I suppose that
is way I just have the exit code when I use 3.2.7 libpl.dll)

Have I skipped any relevant changes in the way qsave_program/1 and/or
PL_initialise() work in the newer versions? Any help would be greatly
appreciated.

Luis Iraola.

