Re: Cancel Invoke
Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance
Roby Eisenbraun Martins wrote:
> Hi,
>
> I created a async method using delegate and I 'm running it using
> BeginInvoke.
> I know when it is complete and I can wait until it finishes, but
> I just cann't find a way to cancel it.
> How can I cancel the begininvoke? And one last thing. To have a
> async method, is better to use begininvoke or a classs thread?
There isn't a way to do this.
Richard
--
Fusion Tutorial:
http://www.grimes.demon.co.uk/workshops/fusionWS.htm
Security Tutorial:
http://www.grimes.demon.co.uk/workshops/securityWS.htm
.
Relevant Pages
- Re: Async Method Call (w. delegates and callback)
... BeginInvoke() to call the delegate. ... callback and a object for my parameters. ... Does anyone know how to implement async method call, ... (microsoft.public.dotnet.framework.compactframework) - RE: Async Method Call (w. delegates and callback)
... I must say I have never used BeginInvoke, I usally create a worker thread ... I'm currently developing an NETCF 3.5 based application which has to ... callback and a object for my parameters. ... Does anyone know how to implement async method call, ... (microsoft.public.dotnet.framework.compactframework) - Re: Begininvoke needed?
... >> progress bar to have an animation and hide by default. ... > would have to call ProgressBar1's BeginInvoke method from the ... You can pass a delegate around, ... (microsoft.public.dotnet.languages.vb) - Re: How to return a value when BeginInvoke is used?
... What Control.Invoke does is running the specified function on the UI thread (which is the opposite to running your function on a worker thread with BeginInvoke). ... Therefore, to keep your UI alive, you delegate all such tasks to code running on the parallel worker thread. ... > private delegate bool IsFileOpenDelegate(string filename); ... > private bool IsFileOpen ... (microsoft.public.dotnet.languages.csharp) - Re: How do you kill a completely locked up thread?
... The one way to cancel pending I/O on a socket and unwedge threads blocking on that is to close the socket from another thread and handle the resulting exceptions. ... // Call BeginInvoke on delegate. ... // Note on last two parameters of Delegate BeginInvoke Method: ... (microsoft.public.dotnet.languages.csharp) |
|