[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: FCallImpl
From: |
Fred Wan |
Subject: |
RE: FCallImpl |
Date: |
Tue, 2 Jan 2001 14:13:45 +0100 |
-----Original Message-----
From: address@hidden
[mailto:address@hidden Behalf Of Marcus G. Daniels
Sent: Monday, January 01, 2001 4:22 AM
To: address@hidden
Subject: Re: FCallImpl
Hi, I have narrowed the problem down to just the creation of the actions for
the bugs. In the case of createActionForEach$message it works, but in the
case of createFActionForEachHomogeneous$call it crashes on an NT machine and
on a Solaris machine the Food World screen is drawn and then just freezes
but the program doesn't crash (and responds to clicks on the control panel).
I cheated with the creation of proto, but this doesn't make any difference
compared to the version where proto is popped of the list. The two versions
are:
modelActions = new ActionGroupImpl(getZone());
try
{
sel = new Selector(Class.forName("SimpleBug"), "randomWalk", false);
modelActions.createActionForEach$message(bugList, sel);
} catch (Exception e)
{
System.err.println("Exception randomWalk: " +
e.getMessage ());
System.exit(1);
}
modelActions = new ActionGroupImpl(getZone());
try{
// SimpleBug proto = (SimpleBug) bugList.getFirst();
SimpleBug proto = new SimpleBug(Globals.env.globalZone,
foodSpace,bugSpace, 1, 1, 999);
sel = new Selector(proto.getClass(), "randomWalk", false);
modelActions.createFActionForEachHomogeneous$call
(bugList,
new FCallImpl(this, proto, sel,
new FArgumentsImpl(this,sel,true)));
} catch (Exception e)
{
System.err.println("Exception randomWalk: " +
e.getMessage ());
}
==================================
Swarm-Support is for discussion of the technical details of the day
to day usage of Swarm. For list administration needs (esp.
[un]subscribing), please send a message to <address@hidden>
with "help" in the body of the message.
- RE: FCallImpl,
Fred Wan <=