[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Help: Drop objects
From: |
Christian Langer |
Subject: |
Help: Drop objects |
Date: |
Fri, 07 Aug 1998 20:20:25 +0200 |
Hello,
I isolated my problem with dropping objects in the source code below. Do
you have any idea why the storage for the object isnĀ“t immediately
deallocated?
Thanks for your time!
Regards,
Christian
-------
main (int argc, const char **argv)
{
id li;
Worldstate *ws;
int lauf;
id sepp;
initSwarm(argc, argv);
li = [List create: globalZone];
while(1) //forever
{
ws = [Worldstate create: scratchZone];
[ws buildObjects];
[li addFirst: ws];
if ([li getCount]>10)
[[li removeLast] drop];
}
return 0;
}
--
_____________________________________________________________________
_/ _/ _/ _/ _/ _/ Dipl. Inform. Christian Langer
_/ _/ _/ _/ _/ _/ WHU Otto Beisheim Graduate School of Management
_/ _/ _/ _/ _/ _/ RWE Chair for Controlling and Logistics
_/ _/ _/_/_/ _/ _/ Burgplatz 2, D-56179 Vallendar, Germany
_/ _/_/ _/ _/ _/ _/ Tel. +49 261 6509-275 Fax: -188
_/_/_/ _/ _/ _/ _/ email: address@hidden
_/ _/ _/ _/ _/_/ homepage: http://www.whu-koblenz.de/control
_____________________________________________________________________
================================= 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.
================================
- Help: Drop objects,
Christian Langer <=