iphone - memory leaks in separate thread
        Posted  
        
            by Brodie4598
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Brodie4598
        
        
        
        Published on 2010-04-18T06:54:55Z
        Indexed on 
            2010/04/18
            7:03 UTC
        
        
        Read the original article
        Hit count: 485
        
I create a second thread to call a method that downloads several images using:
[NSThread detachNewThreadSelector:@selector(downloadImages) toTarget:self withObject:nil];
It works fine but I get a long list of leaks in the log similar to:
2010-04-18 00:48:12.287 FS Companion[11074:650f] * _NSAutoreleaseNoPool(): Object 0xbec2640 of class NSCFString autoreleased with no pool in place - just leaking Stack: (0xa58af 0xdb452 0x5e973 0x5e770 0x11d029 0x517fa 0x51708 0x85f2 0x3047d 0x30004 0x99481fbd 0x99481e42)
2010-04-18 00:48:12.288 FS Companion[11074:650f] * _NSAutoreleaseNoPool(): Object 0xbe01510 of class NSCFString autoreleased with no pool in place - just leaking Stack: (0xa58af 0xdb452 0x5e7a6 0x11d029 0x517fa 0x51708 0x85f2 0x3047d 0x30004 0x99481fbd 0x99481e42)
2010-04-18 00:48:12.289 FS Companion[11074:650f] * _NSAutoreleaseNoPool(): Object 0xbde6720 of class NSCFString autoreleased with no pool in place - just leaking Stack: (0xa58af 0xdb452 0x5ea73 0x5e7c2 0x11d029 0x517fa 0x51708 0x85f2 0x3047d 0x30004 0x99481fbd 0x99481e42)
Can someone help me understand the problem?
© Stack Overflow or respective owner