FROM : Evan DiBiase
DATE : Tue Apr 12 17:41:20 2005
On Apr 12, 2005, at 11:07 AM, The Karl Adam wrote:
> Have you tried this with code that just creates auto-released objects?
I whipped up a sample program to test this:
#import <Foundation/Foundation.h>
int main (int argc, const char * argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
NSString *s;
int i;
for (i = 0; true; i++) {
s = [NSString stringWithString:@"<email_removed>"];
NSLog(@"%d", i);
}
[pool release];
return 0;
}
It's still going strong at 200,000 strings created. I'll keep it
running for a while, though, and if it crashes I'll let the list know.
Evan
DATE : Tue Apr 12 17:41:20 2005
On Apr 12, 2005, at 11:07 AM, The Karl Adam wrote:
> Have you tried this with code that just creates auto-released objects?
I whipped up a sample program to test this:
#import <Foundation/Foundation.h>
int main (int argc, const char * argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
NSString *s;
int i;
for (i = 0; true; i++) {
s = [NSString stringWithString:@"<email_removed>"];
NSLog(@"%d", i);
}
[pool release];
return 0;
}
It's still going strong at 200,000 strings created. I'll keep it
running for a while, though, and if it crashes I'll let the list know.
Evan
| Related mails | Author | Date |
|---|---|---|
| Denis Stanton | Apr 11, 02:35 | |
| Dan Saul | Apr 11, 18:22 | |
| Denis Stanton | Apr 12, 10:47 | |
| Louis C. Sacha | Apr 12, 12:07 | |
| The Karl Adam | Apr 12, 17:07 | |
| Evan DiBiase | Apr 12, 17:41 | |
| Louis C. Sacha | Apr 13, 01:02 | |
| Hamish Allan | Apr 13, 02:23 | |
| Denis Stanton | Apr 13, 06:20 | |
| Denis Stanton | Apr 13, 22:38 |






Cocoa mail archive

