NSThread.

Discussion in 'iPhone/iPad Programming' started by shilpapatil, Nov 13, 2008.

  1. macrumors newbie

    Joined:
    Nov 13, 2008
    #1
    Hi all,
    in my main thread i am showing alertview, and i have created another thread using "- (id)initWithTarget:(id)target selector:(SEL)selector object:(id)argument" this method.In this thread i am doing connection to server.whenever i click cancel button which is in alert view i have to cancel the thread which i have created to conect to server.I am canceling that thread using cancel method which can be called on thread,but program will give bad excess or sometimes hangs off.
     
  2. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    I've having trouble working out exactly what you've done. The best way to get help is probably to post some code...
     

Share This Page