Re: How to stop a BackgroundWorker thread that calls a C++ dll

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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





.



Relevant Pages

  • Re: GetProcAddress in Delphi .net 2005
    ... The basic problem is the requirement to allow for Multiple tax calculation ... So you pre-define a number of procedures you expect in the taxdll. ... > Are you ever going to load more than one DLL in a session? ...
    (alt.comp.lang.borland-delphi)
  • Re: C# vs C
    ... I have a calculation library written in C compiled into a DLL. ... This would require marshalling of some structs etc ... but I am worried that the .NET implementation ...
    (microsoft.public.dotnet.framework.performance)
  • slow DLL call problem
    ... The main excutable used to have some calculation functions, ... time consuming of original calculation from the excutable versus the ... calculation through this new DLL, the DLL calls is much slower. ...
    (microsoft.public.vstudio.development)
  • Re: Secure DLL
    ... > Does somebody know a secure solution to ensure that the DLL an application ... the application sends a "challenge" message to the DLL. ... > responds with a value calculated using a one-way hash function. ... > application checks the response against its own calculation of the expected ...
    (comp.security.misc)
  • Re: Program execution while waiting for DLL return
    ... messaging function that contains feedback I need for my VB application. ... that 3rd party DLL in an Active EXE class/module combo (module for the ... DoMyStuff simply enables a timer in the ActiveX EXE, ...
    (microsoft.public.vb.general.discussion)