I'm leaking memory
I'm leaking memory
- Subject: I'm leaking memory
- From: "Brian O'Brien" <email@hidden>
- Date: Fri, 11 Feb 2005 11:51:45 -0700
These are the error messages I'm getting... What have I done wrong?
2005-02-11 11:50:12.091 RealTimeMIP[2594] *** _NSAutoreleaseNoPool(): Object 0x50cd10 of class NSCFArray autoreleased with no pool in place - just leaking
2005-02-11 11:50:12.092 RealTimeMIP[2594] *** _NSAutoreleaseNoPool(): Object 0x50ee10 of class NSCFString autoreleased with no pool in place - just leaking
2005-02-11 11:50:12.092 RealTimeMIP[2594] *** _NSAutoreleaseNoPool(): Object 0x50f7d0 of class NSCFString autoreleased with no pool in place - just leaking
- (void) setParameters:(NSString *)myAETParam aeTitleList:(NSMutableArray *)acceptAETsParam
{
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
myAET = std::string([myAETParam UTF8String]);
NSLog(@"my AET is %s\n", myAET.c_str());
int n=[acceptAETsParam count];
for (int i=0; i < n; ++i)
{
NSString * anObject = [[acceptAETsParam objectAtIndex:i] retain];
acceptAETs.push_back(std::string([anObject UTF8String]));
}
[pool release];
}
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden