Multiple NSThread usage

Discussion in 'iOS Programming' started by arnieterm, Sep 11, 2009.

  1. arnieterm macrumors regular

    Joined:
    Aug 28, 2008
    #1
    In my iphone application, there is a tabbarController with four tabs. All these tabs contains UITableView that needs to populate data from web service. I have made use of detachNewThread../performSelectorOnMainThread.. methods in each of these tabs for reading data from web service.
    As the application is not storing data locally and only showing it from web service.Though this helps in making UI operations swift but still than it happens that sometimes app crashes on iphone [no problem on simulator]
    Also I am using paging so at a time only 10-15 records are displayed per table view and removes these records from memory when next slot is fetched
    What may be the possible reason for crash on iphone?
    Thanks
    Arnieterm
     
  2. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #2
    Possible: using up all available memory.

    Are you getting a memory warning before the crash? Have you tried examining how your application runs using Instruments?
     

Share This Page