[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Problems with lists
From: |
Alessandro Perrone |
Subject: |
Problems with lists |
Date: |
Fri, 5 Jun 1998 13:11:20 +0200 (METDST) |
Hi all
I have a little problem with Lists.
All I'd like to do is to cancel an object from List.
Here it is the methos I wrote
-destroyInefficient {
id index, agent;
int i;
index = [[modelswarm getFirmList] begin: [self getZone]] ;
while ((agent = [index next])) {
if (status !=1) {
[[modelswarm getFirmList] remove: agent];
[index remove];
[agent drop];
}
}// while
[index drop];
return self;
}
Whats wrong?
Gdb said to me
Program received signal SIGSEGV, Segmentation fault.
0x806d0dd in -[ListIndex(linked) _remove] (self=0x823a348, _cmd=0x8159e04)
at List_GEN.m:433
and "where" command said
#0 0x806d0dd in -[ListIndex(linked) _remove] (self=0x823a348,
_cmd=0x8159e04)
at List_GEN.m:433
#1 0x804d1cb in -[Firm destroyInefficient] (self=0x82378c0,
_cmd=0x8159e34)
at Firm.m:67
#2 0x804d2a9 in -[Firm newFirms] (self=0x82378c0, _cmd=0x815a864) at
Firm.m:84
#3 0x807191b in -[Object(s) _perform:] (self=0x82378c0, _cmd=0x81628c0,
aSel=0x815a864) at DefObject.m:469
#4 0x805f18c in -[ActionTo(0) __performAction::] (self=0x8239048,
_cmd=0x8162bb0, anActivity=0x82204a8) at Action.m:208
#5 0x805f940 in -[Activity(c) __run:] (self=0x82204a8, _cmd=0x8162b98)
at XActivity.m:162
#6 0x805f894 in -[Activity(c) __run:] (self=0x823a438, _cmd=0x8162b98)
at XActivity.m:133
#7 0x805f894 in -[Activity(c) __run:] (self=0x823a260, _cmd=0x8]
(self=0x8239390
Waiting for your prompt reply, best regards.
ALEX
==================================
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.
==================================
- Problems with lists,
Alessandro Perrone <=