Thread cancelleton (backgroundworker)

  • Thread starter Thread starter csharpula csharp
  • Start date Start date
C

csharpula csharp

Hello,
I am using the background worker and want to provide to thread which is
activated by background worker option to check if cancelletion is legal
or not during the flow.
How can I affect the activation of bw.CancelAsync() which is made in
main thread from the thread runned by background worker?
Thank u!
 
Hello csharpula,

See this sample http://www.codeproject.com/KB/cpp/BackgroundWorker_Threads.aspx


---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo


cc> Hello,
cc> I am using the background worker and want to provide to thread which
cc> is
cc> activated by background worker option to check if cancelletion is
cc> legal
cc> or not during the flow.
cc> How can I affect the activation of bw.CancelAsync() which is made in
cc> main thread from the thread runned by background worker?
cc> Thank u!
cc>
cc>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top