swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

running problem


From: Tiago Simas
Subject: running problem
Date: Wed, 31 Jul 2002 08:40:24 -0600

Hi, I have the following problem:
I'm running swarm in JavaBuilder 6. I have debugged my program and it's ok! then I run it, and when it reaches the line

Globals.env.setComponentWindowGeometryRecordName(topLevelAgents,"topLevelAgents");

Appears the following error:

*** event raised for error: InvalidArgument

*** function: nil_method(), file: /src/Swarm/swarm/src/defobj/internal.m, line: 1349

The message `setWindowGeometryRecordNameForComponent:widget:' was sent to nil.

*** execution terminating due to error

/src/Swarm/swarm/src/defobj/Symbol.m:173 -[Error(c) _raiseEvent:]

      0 [sig] javaw 1000 stackdump: Dumping stack trace to javaw.exe.stackdump


My StartAgents program is:


package simpleagent;

import swarm.Globals;
import swarm.defobj.Zone;

public class StartAgents
{
  public static void main(String[] args)
  {
    AgentObserver topLevelAgents;

    Globals.env.initSwarm("SimpleAgent","1.0","address@hidden",args);
    if (Globals.env.guiFlag)
    {
      topLevelAgents = new AgentObserver(Globals.env.globalZone);

      Globals.env.setComponentWindowGeometryRecordName(topLevelAgents,"topLevelAgents");

      topLevelAgents.buildObjects();
      topLevelAgents.buildActions();
      topLevelAgents.activateIn(null);
      topLevelAgents.go();
      topLevelAgents.drop();
    }
  }


Could someone Help me!
Cheers,
Tiago.
reply via email to

[Prev in Thread] Current Thread [Next in Thread]