From p.singleton@keele.ac.uk  Wed Nov  8 17:11:44 2000
Received: from cmailg7.svr.pol.co.uk (cmailg7.svr.pol.co.uk [195.92.195.177])
	by swi.psy.uva.nl (8.9.3/8.9.3) with ESMTP id RAA24942
	for <prolog@swi.psy.uva.nl>; Wed, 8 Nov 2000 17:11:43 +0100 (MET)
Received: from modem4294967230.justice.dialup.pol.co.uk ([195.92.4.66] helo=keele.ac.uk)
	by cmailg7.svr.pol.co.uk with esmtp (Exim 3.13 #0)
	id 13tXpA-0005Jx-00
	for prolog@swi.psy.uva.nl; Wed, 08 Nov 2000 16:11:45 +0000
Message-ID: <3A097863.2FBBF5D0@keele.ac.uk>
Date: Wed, 08 Nov 2000 15:59:31 +0000
From: Paul Singleton <p.singleton@keele.ac.uk>
Organization: SmartArts Computing Consultancy
X-Mailer: Mozilla 4.74 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: SWI Prolog <prolog@swi.psy.uva.nl>
Subject: Re: foreign code chicken/egg scenario
References: <3A094EE8.C7581051@keele.ac.uk> <00110815182601.30820@gollem>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Jan Wielemaker wrote:

> Sounds like dangerous practice.

Is load_foreign_library('MYLIB.DLL') unsafe where the DLL is (unknown
to Prolog) already linked?  If so, is there a workaround?

> If your dll embeds Prolog simply call
> the install() function after PL_initialise().

OK, but sometimes my DLL will be dynamically loaded by Prolog (e.g.
upon autoloading a native library which refers to it).

I'm trying to deploy MYLIB and LIBPL as "components", which work
together regardless of which is the chicken and which is the egg :-)

Paul Singleton


