|
From: Vitor S. C. <vi...@bi...> - 2002-04-06 05:51:45
|
Hi Michael,
>
> Now if we start up yap and do a:
> ['YapConnect.txt'].
>
> Yap sends the two 'Strings' and Java returns the right messages. (Tested
> with the logfile: logfile.txt)
> We are back at the Yap-command prompt.
> Now we type the following two lines at the command prompt:
> send('First Hello').
> send_nl.
>
> The problem is, that nothing is sent to the Java Program anymore!
> (Tested again with the logfile)
>
I tested with the version in CVS, and I got this
[ Restoring file startup ]
[ YAP version Yap-4.3.21 ]
?- [StoryFrame].
[ INSTANTIATION ERROR- reconsult(_146): expected bound value ]
?- ['StoryFrame'].
[ PERMISSION ERROR- consult(StoryFrame): cannot read from StoryFrame ]
?- ['YapConnect'].
[ consulting /home/vitor/Yap/bins/linux/YapConnect.yap... ]
[ reconsulting /usr/local/share/Yap/system.yap... ]
[ reconsulting /usr/local/share/Yap/lists.yap... ]
[ reconsulted /usr/local/share/Yap/lists.yap in module lists, 10 msec 13792 bytes ]
[ reconsulted /usr/local/share/Yap/system.yap in module system, 20 msec 51964 bytes ]
_406_406 [ consulted /home/vitor/Yap/bins/linux/YapConnect.yap in module user, 20 msec 55372 bytes ]
yes
?- send('First Hello').
yes
?- send_nl.
yes
?- send('Third Hello').
yes
?- send_nl.
yes
?- ^EOF
with logfile.txt
Received: First Hello
Sent: FistHello.
Received: Second Hello
Sent: SecondHello.
Received: First Hello
Sent: FistHello.
Received: Third Hello
Sent: THE_END.
I am using Linux, and the latest CVS. Can you try the latest version
in CVS?
> It seems that the connection is broken, although the Java Program is
> still running! (No 'THE_END' in the logfile)
> Is there a way to keep the connection alive? Are we doing something
> wrong or is it supposed to work that way?
>
You might have had a problem with buffering: often the OS only shows
the characters after a while. Did you try exiting Yap and check if
that worked?
>
> The other problem only occured under Windows (NT4.0 and 98) with Yap
> Version 4.3.20 precompiled binaries:
> We are not able to build up a connection at all. We are using the same 2
> files (YapConnect.txt and StoryFrame.java) but nothing is sent to the
> Java Program.
> Is it possible to connect the streams under the Windows enviroment?
> Again, are we doing something wrong? Should we not use the precompiled
> binaries?
>
I'll check that one next.
Cheers,
Vitor
|