Re: How to stop a BackgroundWorker thread that calls a C++ dll
- From: "Torben Laursen" <Torben@xxxxxxxxxxxxxxxxx>
- Date: Tue, 4 Jul 2006 13:47:08 +0200
Hi
It takes between 0.001 s and more then one hour depending on the
calculation.
But based on Mehdi's feedback I think that I will try to find a way to
update the C++ dll, since in the long run it seems that it
will be a good investment of time.
Thanks
Torben
"Martijn Boven" <martijn@xxxxxxxx> wrote in message
news:u7n36m1nGHA.3772@xxxxxxxxxxxxxxxxxxxxxxx
How long would this calculation last?
Are we talking about minutes, seconds?
"Torben Laursen" <Torben@xxxxxxxxxxxxxxxxx> wrote in message
news:ORaXkx0nGHA.2100@xxxxxxxxxxxxxxxxxxxxxxx
Hi
My interface calls a C++ dll that runs a slow calculations.
So I call the dll inside a BackgroundWorker thread, and that all works
fine.
But how can I stop the thread if the user wants to? I can not tell the
dll to stop so CancelAsync() will not work?
I need a way to simply kill the "thread" since nothing in it will be used
if the user wants to cancel
Thanks Torben
.
- References:
- How to stop a BackgroundWorker thread that calls a C++ dll
- From: Torben Laursen
- Re: How to stop a BackgroundWorker thread that calls a C++ dll
- From: Martijn Boven
- How to stop a BackgroundWorker thread that calls a C++ dll
- Prev by Date: Retrieving values from Data Reader by column name
- Next by Date: Re: Retrieving values from Data Reader by column name
- Previous by thread: Re: How to stop a BackgroundWorker thread that calls a C++ dll
- Next by thread: RPC Server is unavailable by computers under xp
- Index(es):
Relevant Pages
|