Issues with performSelectorInBackground

Discussion in 'iPhone Tips, Help and Troubleshooting' started by jfalexvijay, Sep 13, 2010.

  1. jfalexvijay macrumors newbie

    Joined:
    Jul 14, 2010
    #1
    Hi,

    In my iPad application I am using "performSelectorInBackground:mad:selector(loadImages) withObject:nil" method.

    When I run my application I am getting below message;

    2010-09-14 00:17:49.125 PicPockets[940:4b03] *** _NSAutoreleaseNoPool(): Object 0x5527c10 of class UIView autoreleased with no pool in place - just leaking
    Stack: (0xab71f 0xe3602 0x2b87 0x31bd1 0x31b43 0x929e981d 0x929e96a2)
    2010-09-14 00:17:49.127 PicPockets[940:4b03] *** _NSAutoreleaseNoPool(): Object 0x5527c10 of class UIView autoreleased with no pool in place - just leaking
    Stack: (0xab71f 0xe3602 0x2c88 0x31bd1 0x31b43 0x929e981d 0x929e96a2)
    2010-09-14 00:17:49.128 PicPockets[940:4b03] *** _NSAutoreleaseNoPool(): Object 0x55487f0 of class NSCFArray autoreleased with no pool in place - just leaking
    Stack: (0xab71f 0xe3602 0x32a31 0x9549 0x2cfc 0x31bd1 0x31b43 0x929e981d 0x929e96a2)

    I got few solutions; that is, I have to use NSAutoreleasePool.
    Within "loadImages" method, I am loading images from SQLite database. and adding it into a NSMutableArray. If I use NSAutoreleasePool, after loading the images from database, NSMutableArray is empty.

    I don't have any idea to resolve it.

    Please give me some solutions to resolve it.
     
  2. jfalexvijay thread starter macrumors newbie

    Joined:
    Jul 14, 2010
    #2
    Resolved

    Hi,

    I have resolved this issues.

    I have used NSMutableArray with autorelease. Just I have removed autorelease. Now it is working fine.

    Thanks.
     

Share This Page