Re: Sicstus Prologbeans
- From: A.L. <alewando@xxxxxxxxxxxx>
- Date: Wed, 27 Sep 2006 07:56:38 -0500
On Tue, 26 Sep 2006 11:36:32 +0200, "Berto" <hertzian@xxxxxxxxx>
wrote:
Hi,
I want to comunicate with sicstus using prologbeans.net. I create a prolog
file (.pl) as described in documentation and this c# code
PrologSession session = new PrologSession();
Bindings bindings = new Bindings().bind("C", k+".");
session.connect();
QueryAnswer answer = session.executeQuery("color(C,X)", bindings);
If the elaboration is too complex (more than 3 seconds) the application can
throw this exception:
errore Unable to read data from the transport connection: A blocking
operation was interrupted by a call to WSACancelBlockingCall.
Where's the problem? Always works with simple elaborations.
I have never used PrologBeans with .NET, but I am using PrologBeans
with Java (in commercial product) without problems. Check whether
you have the most up-to-date version of PrologBeans; early versions
had some problems that have been fixed.
Try to run complete examples that come with PrologBeans and if they
work, try to intrduce delay in Prolog code to see whether you will
replicate the bahavior. If yes, notify SICStus Prolog team. There is
mail list for SICStus user, try to aske there
http://www.sics.se/isl/sicstuswww/site/community.html
A.L.
.
- References:
- Sicstus Prologbeans
- From: Berto
- Sicstus Prologbeans
- Prev by Date: Re: Can't compile SWI on FreeBSD
- Next by Date: Re: Can't compile SWI on FreeBSD
- Previous by thread: Sicstus Prologbeans
- Index(es):
Relevant Pages
|