Um, the program isn't connecting to itself is it (two symmetric clients)?.
Forgive me for speaking out of turn, I haven't looked at DRb yet...
James.

2008/4/19 larry talley <[EMAIL PROTECTED]>:

> I don't know what it means, that is why I am asking my question.  But,
> FYI, I do have code in my program that calls sleep, when one player is
> waiting for the other player to make a move.  I have tried sleeping
> for different amounts of time... 1 second, more, less, etc.  And after
> sleeping then I check (via DRb remote object invocation) to see if the
> other player made a move yet.  What seems to me to be going on is that
> there is only one shoes app, despite two different copies of my
> application, and two windows on the screen... and it seems that when I
> put one of my "games" to sleep, the other one is asleep also, so there
> is never an opportunity for the second player to make a move.
>
> I may be completely off base about what is going on, this was just my
> impression.
>
> I haven't done sophisticated troubleshooting.  But the game was
> working when played on two computers over the net, but when I changed
> DRb to talk and listen at 127.0.0.1 and ran 2 instances on the same
> computer, then it locks up as soon as the initial move is made (and
> that is the point where the sleep and wait for the other move is
> initiated.)
>
> Sometime this weekend I may spend some time and troubleshoot this a
> little more systematically.
>
> Larry
>
> On Fri, Apr 18, 2008 at 2:01 PM, Tim Inman <[EMAIL PROTECTED]>
> wrote:
> > WooHoo this one sounds fun!
> >
> >
> >  Ernest Prabhakar wrote:
> >
> > >
> > > On Apr 18, 2008, at 2:22 PM, //engtech wrote:
> > >
> > >
> > > > Does this mean you can't have more than one shoes app of any kind
> > > > running on the same machine? Please tell me that isn't so.
> > > >
> > >
> > >
> > > I assume this means the GUI only supports one app at a time.
> Presumably
> > you can invoke multiple apps from the command-line, which would then run
> > independently...
> > >
> > > -enp
> > >
> > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > On Fri, Apr 18, 2008 at 10:51 AM, larry talley <[EMAIL PROTECTED]>
> wrote:
> > > >
> > > > > We have developed a multi-player networked game that currently
> works
> > > > > when run with players on separate computers, but, when we try to
> run 2
> > > > > instances on one computer, it fails. Our game uses shoes
> (currently
> > > > > 0.r532) for the GUI, and DRb for networking magic.
> > > > >
> > > > > I believe the problem may have something to do with how shoes
> manages
> > > > > running 2 shoes apps simultaneously on one computer. It appears to
> me
> > > > > that there is only 1 shoes process running when I have 2 shoes
> apps
> > > > > running on this computer. And, when 1 game enters a sleep state
> while
> > > > > waiting for the other game to make its move, I believe that the
> single
> > > > > shoes process goes to sleep.
> > > > >
> > > > > I sure could be wrong about this diagnosis. But if I am right, can
> > > > > you think of a way to force my two game instances to run in
> separate
> > > > > shoes instances?
> > > > >
> > > > > Do you have any other advice regarding what I am trying to do?
> > > > >
> > > > > Development, testing, and demonstrations will be much easier if we
> can
> > > > > get 2 game instances to run on one computer.
> > > > >
> > > > > Larry
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > http://InternetDuctTape.com
> > > > Subscribe by RSS: http://feeds.feedburner.com/engtech
> > > > Subscribe by Email: http://www.feedblitz.com/f/?Sub=76839
> > > >
> > >
> > >
> > >
> >
> >
>

Reply via email to