From mike_maxwell@sil.org  Tue Jul 20 21:38:29 1999
Received: from barlaeus.ic.uva.nl (barlaeus.ic.uva.nl [145.18.68.50])
	by swi.swi.psy.uva.nl (8.9.3/8.9.3) with ESMTP id VAA27029
	for <prolog@swi.psy.uva.nl>; Tue, 20 Jul 1999 21:38:29 +0200 (MET DST)
From: mike_maxwell@sil.org
Received: from email1.camnet.com (root@email1.camnet.com [208.145.81.9])
	by barlaeus.ic.uva.nl (8.8.7/8.8.8) with ESMTP id VAA11652
	for <prolog@swi.psy.uva.nl>; Tue, 20 Jul 1999 21:39:15 +0200 (MET DST)
Received: from router-8.camnet.com (router-8.camnet.com [208.145.81.78])
	by email1.camnet.com (8.9.3/8.8.7) with SMTP id PAA17694
	for <prolog@swi.psy.uva.nl>; Tue, 20 Jul 1999 15:30:46 -0400
Received: from ccMail by router-8.camnet.com (ccMail Link to SMTP R8.31.00.5)
    id AA932499694; Tue, 20 Jul 1999 15:41:40 -0400
Message-Id: <9907209324.AA932499694@router-8.camnet.com>
X-Mailer: ccMail Link to SMTP R8.31.00.5
Date: Tue, 20 Jul 1999 15:33:30 -0400
To: <prolog@swi.psy.uva.nl>
Subject: bug: MSCVRT.DLL?
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Description: "cc:Mail Note Part"

I seem to have a bug in version 3.2.8 of Swi-Prolog, the MS-Windows version.  On
a Win98 machine, if I launch PLWIN.EXE, type in most anything (e.g. "member(a,
[a,b])."), then do "halt.", Prolog crashes with the ff. error:

     PLWIN caused an invalid page fault in module KERNEL32.DLL at 0177:bff7b9e6.

(further info about the registers etc. omitted here)  The same thing happens if
I call the goal using the command line parameter -g, etc.

I _think_ I have tracked down the problem to the file MSVCRT.DLL.  The supplied
version is dated 1/22/97, version 5.00.7022, and if that is loaded in, Prolog
exits without problem.  BUT--if another program has already loaded a different
version of MSVCRT.DLL (e.g. the Win98-supplied version dated 3/18/99, version
6.00.8397.0--well, that can't be the version supplied with the original Win98,
but somewhere along the line that version got installed), Prolog crashes.  I'm
no expert on how these things work (and I have no idea what this particular DLL
is supposed to do), but my guess is that if a given DLL has already been loaded,
Prolog doesn't load its own version, rather it uses the one already in memory. 
And that newer version is apparently incompatible with Swi-Prolog.

However, I can only reproduce the problem on a Win98 machine, not on my Win95 PC
(which has the same 1999 DLL), so maybe I'm barking up the wrong tree.

I can email a copy of the offending DLL, if that will help tracking things down.

                            Mike Maxwell
                            Mike_Maxwell@sil.org
                            Summer Institute of Linguistics

