Thread cancelleton (backgroundworker)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • csharpula csharp

    Thread cancelleton (backgroundworker)

    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!



    *** Sent via Developersdex http://www.developersdex.com ***
  • Michael Nemtsev [MVP]

    #2
    Re: Thread cancelleton (backgroundwork er)

    Hello csharpula,

    See this sample http://www.codeproject.com/KB/cpp/Ba...r_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


    ccHello,
    ccI am using the background worker and want to provide to thread which
    ccis
    ccactivated by background worker option to check if cancelletion is
    cclegal
    ccor not during the flow.
    ccHow can I affect the activation of bw.CancelAsync( ) which is made in
    ccmain thread from the thread runned by background worker?
    ccThank u!
    cc*** Sent via Developersdex http://www.developersdex.com ***
    cc>


    Comment

    Working...