RE: Need help regarding threading

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




Hi there,

Threads are a bit tricky to work with. Follow other suggestions here (sub
threads). If you cannot figure it out, you can always use a global variable
and have the loop (or whatever you are using for this matter) check this
variable for a particular value that will signal abort.

Good luck!

--
Juan Romero
-----------------------------------------
The successful person has the habit of doing the things failures don't like
to do.
E.M. Gray


"trialproduct2004@xxxxxxxxx" wrote:

> Hi all
> I am having problem at a time of handling threading.
> I am having application containing thread.
> In thread procedure i ma using recursive function.
> This recursive function is adding some entries in my temprary file.
> But when i called abort on thread it is not aborting that thread.
> After calling aborting still entries are getting inserted into
> temporary files.
> That means still recursive function is getting executed.
> Can some one tell me why this is happening even after calling abort on
> thread.
> Is there any alternative for aborting thread.
> Please help me as this is very very important for me.
>
> Thanks in advance.
>
>
.



Relevant Pages

  • RE: Need help regarding threading
    ... is not creating sub threads inside your recusrisv function other wise you ... > This recursive function is adding some entries in my temprary file. ... > But when i called abort on thread it is not aborting that thread. ... > After calling aborting still entries are getting inserted into ...
    (microsoft.public.dotnet.general)
  • Re: Need help regarding threading
    ... > This recursive function is adding some entries in my temprary file. ... > But when i called abort on thread it is not aborting that thread. ... > After calling aborting still entries are getting inserted into ...
    (microsoft.public.dotnet.general)
  • Need help regarding threading
    ... This recursive function is adding some entries in my temprary file. ... But when i called abort on thread it is not aborting that thread. ... After calling aborting still entries are getting inserted into ... Can some one tell me why this is happening even after calling abort on ...
    (microsoft.public.dotnet.general)
  • Threading problem.
    ... This recursive function is adding some entries in my temprary file. ... But when i called abort on thread it is not aborting that thread. ... After calling aborting still entries are getting inserted into ... Can some one tell me why this is happening even after calling abort on ...
    (microsoft.public.dotnet.languages.vb)
  • Re: task abortion
    ... What about the resources it owns? ... the scope upon task abort. ... Aborting tasks doing simple stuff is not needed, ... see if any freeze for some IO reason. ...
    (comp.lang.ada)