swarm-support
[Top][All Lists]
Advanced

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

Tcl error in LinkItem creation


From: Darren Schreiber
Subject: Tcl error in LinkItem creation
Date: Sun, 19 Sep 1999 10:29:02 -0700


I've added a linking method to my agents. It compiles, but it when I run it I get the following error:


(Tcl -eval:) invalid command name "(null)"
while executing
"unknown_pre_tclObjc $name $args"
(procedure "unknown" line 6)
invoked from within
"(null) create line 0 0 0 0 -arrow last"
while evaluating: (null) create line 0 0 0 0 -arrow last
(Tcl -eval:) invalid command name "(null)"
while executing
"unknown_pre_tclObjc $name $args"
(procedure "unknown" line 6)
invoked from within
"(null) create line 0 0 0 0"
while evaluating: (null) create line 0 0 0 0
(Tcl -eval:) invalid command name "(null)"
while executing
"unknown_pre_tclObjc $name $args"
(procedure "unknown" line 6)
invoked from within
"(null) lower invalid command name "(null)""
while evaluating: (null) lower invalid command name "(null)"; (null) lower invalid command name "(null)"



When I set a break point before newLink=[LinkItem create: [self getZone]]; then I get the error right after that command regardless of what comes next. I tried changing the order of the setCanvas, setFrom, setTo, but that didn't help. I tried tracing the error to LinkItem.m, but I would get a crash before it hit the break points.



-linkToInferior: (id) anAgent {
id <LinkItem> newLink;

newLink=[LinkItem create: [self getZone]];
[newLink setFrom: self];
[newLink setTo: anAgent];
[newLink setCanvas: graphCanvas];
newLink=[newLink createEnd];
[newLink setColor: "green"];

[inferiorLinksList addLast: newLink];

return self;
}



_____________________________________________

Darren Schreiber
Attorney at Law
Graduate Student
Political Science, UCLA
address@hidden
reply via email to

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