Re: Sicstus Prologbeans



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.
.



Relevant Pages

  • Re: Are Logtalk objects "real" objects?...
    ... like PrologBeans. ... bi-directional multithreading are ... and there is no perfect solution :-( ... I am using SICStus because if its excellent CLPlibrary. ...
    (comp.lang.prolog)
  • Re: Software suggestions
    ... Java interface through PrologBeans package. ... If I am wrong (regarding SiCStus) I would be grateful for any comments:). ... By low level I mean that you have to know Prolog to use PrologBeans. ... ECLiPSe loops are only syntatic sugar. ...
    (comp.constraints)
  • Sicstus Prologbeans
    ... I want to comunicate with sicstus using prologbeans.net. ... file as described in documentation and this c# code ... PrologSession session = new PrologSession; ... If the elaboration is too complex the application can ...
    (comp.lang.prolog)