[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
dropping a Zone
From: |
Steve Jackson |
Subject: |
dropping a Zone |
Date: |
Fri, 24 Mar 2000 14:36:29 -0800 |
Hi Marcus:
The documentation states the dropping a Zone automatically frees all
allocations
made within it, but does dropping a Zone free *all* resources even if
an object does something like the following:
- buildObjects {
//modelZone is an instance variable
modelZone = [Zone create: [self getZone]];
return self;
}
- makeALeak {
int i;
char* aString;
for(i=0; i < 6; i++) {
aString = (char *) [modelZone alloc:10000*sizeof(char)];
}
return self;
}
- (void) drop {
[modelZone drop];
}
?
Thanks
Steve
==================================
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.
- dropping a Zone,
Steve Jackson <=