Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple Async function execution

Status
Not open for further replies.

schwank

Programmer
Sep 16, 2002
9
US
I have read all the msdn and viz studio docs on asynchronous method calls. Is there a way to just simply call a method async without callbacks? I just want to call a function that sends out a ton of mail, and don't care about any return values.

Thanks.
 
Run your function in another thread then. When the thread finishes, it just goes away. Be aware that when your main thread (the rest of the progam) finishes, your thread will be terminated too (gets a ThreadAbortException). So you'll have to tell the main thread when your worker thread completes.

Chip H.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top