[ggo-discussion] Re: a new bug... (0.3.9pre2)

  • From: Peter Strempel <zotan@xxxxxx>
  • To: ggo-discussion@xxxxxxxxxxxxx
  • Date: Wed, 14 May 2003 16:39:47 +0200

On Wed, May 14, 2003 at 05:20:19PM +0300, Jarkko Lindblad wrote:
> The new gGo version has following new bug under Windows XP.
> First launch gGo. Then double click on a sgf-file - the editor opens an 
> error requester complaining that the File fdsjfhdsifsdfds (replace that 
> with random characters) does not exist. However if gGo is not loaded 
> before double clicking on a sgf-file it loads just fine. Also loading 
> files using the Load a Game button on the main window works just fine.


I slightly changed the mechanism with the localhost:9999 server to open a
SGF file with an already running gGo with 0.3.9pre1.

Basically, it works as follows:

No gGo running:
Double-click on SGF (aka type: java -jar gGo.jar <filename.sgf>)
gGo starts up, looks for a socket on localhost:9999. None there, so just
continue and load the file. No problem, socket not involved (same with
simply loading the file from the Load button).

gGo running:
Double-click on SGF
New JVM starts up (cannot be prevented), finds a socket on localhost:9999
and pipes the filename through the socket to the existing gGo instance, and
quits again (no GUI stuff so far, so this run is cheap). The existing gGo
now recieves a filename over the socket and loads the file.

Exactly here I had done a change, earlier it piped an array of char with the
filename, now it pipes a String. I expected that is the same. Works on
Linux. <sigh>
Why the change? I wanted to send the SGF from a python script to gGo (my
SGFConvert tool) and hacked Kombilo a little, and python only knows strings,
not char arrays. Linux obviously sends a string, too. Winshit probably sends
something else.

I will have a look. Well, I can undo that change in worst case again, so no
disaster. Good old CVS. :)


Other related posts: