[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: question about Drop
From: |
James Marshall |
Subject: |
Re: question about Drop |
Date: |
Mon, 7 Sep 1998 14:11:47 GMT |
Hi,
strange, I'm now doing that... my objects contain ListIndexes, so
for each ListIndex I call deleteAll, then drop it. Finally I call the
drop method of the super class. e.g.
-(void)drop
{
[[aList getCollection] deleteAll];
[aList drop];
[super drop];
}
But the memory usage on my system only rises, never falls (on Windows
NT 4.0 with Swarm 1.2, no EZgraphs or anything... simply logging
results to an OutFile). This is a potential problem as I'm
doing a parameter sweep of a 100 runs of the model, and I think it
will run out of memory. I'll have to wait and see if it reclaims some
memory when it runs low.
James
>
> I believe that swarm's default drop does not drop
> objects pointed to by the object being dropped.
>
> So yes, you have to overide drop if you
> want to drop beyound the top object.
>
> - r
>
> Rick Riolo address@hidden
> Program for Study of Complex Systems (PSCS)
> 4477 Randall Lab
> University of Michigan Ann Arbor MI 48109-1120
> Phone: 734 763 3323 Fax: 734 763 9267
> http://www.pscs.umich.edu/PEOPLE/rlr-home.html
>
> On Mon, 7 Sep 1998, James Marshall wrote:
>
> > Date: Mon, 7 Sep 1998 10:54:18 GMT
> > From: James Marshall <address@hidden>
> > To: address@hidden
> > Subject: question about Drop
> >
> > Hi,
> > I'm not quite clear on the action of the default Drop method...
> > will this also deallocate storage for objects contained within the
> > object being dropped, or do you need to override the Drop method and
> > do this explicitly? Thanks,
> > James
> >
> > --
> > James Marshall - Postgraduate Research Student (MPhil/PhD)
> > Artificial Intelligence Group - Department of Computer and Information
> > Sciences
> > De Montfort University - Milton Keynes Campus
> > Web:- http://www.mk.dmu.ac.uk/~jmarshall/
> >
> > ==================================
> > 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.
> > ==================================
> >
>
> ==================================
> 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.
> ==================================
>
--
James Marshall - Postgraduate Research Student (MPhil/PhD)
Artificial Intelligence Group - Department of Computer and Information Sciences
De Montfort University - Milton Keynes Campus
Web:- http://www.mk.dmu.ac.uk/~jmarshall/
==================================
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.
==================================