Home > Archive > Prolog > September 2006 > Sicstus Prologbeans
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Sicstus Prologbeans
|
|
|
| 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.
Thxs
Berto
| |
|
| On Tue, 26 Sep 2006 11:36:32 +0200, "Berto" <hertzian@libero.it>
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.
|
|
|
|
|