• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Killing a Thread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Killing a Thread


  • Subject: Re: Killing a Thread
  • From: Joseph Kelly <email@hidden>
  • Date: Mon, 24 Nov 2008 08:31:35 -0800

Why can't your thread just return when it's finished?

On Nov 24, 2008, at 1:02 AM, Mahaboob wrote:


Hi,
I’m developing an application for sending email. This allows the user to
restrict,
1. Number of emails to be send simultaneously and
2. Time between emails in seconds.
So I used a thread to send the mail. I can send the mails. After sending
mail to all email id’s I need to kill the thread. But I failed to do that
and my application getting crashed after sending the mail. I think I should
write the code for that in - (void) connectionTerminated: method. But I
can’t able to Kill the thread. How can I do this ?
I’m attaching the code here.


Thanks in advance
Mahaboob



<Send.rtf>_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Killing a Thread
      • From: Mahaboob <email@hidden>
References: 
 >Killing a Thread (From: Mahaboob <email@hidden>)

  • Prev by Date: Re: main thread communicating with background thread and vice-versa
  • Next by Date: Re: Call getElementById in Cocoa
  • Previous by thread: Re: Killing a Thread
  • Next by thread: Re: Killing a Thread
  • Index(es):
    • Date
    • Thread