HighTechTalks DotNet Forums  

Windows Services

Dotnet Academic General Discussions microsoft.public.dotnet.academic


Discuss Windows Services in the Dotnet Academic General Discussions forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Vamsi Polavarapu
 
Posts: n/a

Default Windows Services - 04-12-2005 , 10:23 AM






Hello,
I have two threads running ,one in my web application and other one in a
windows service.How can i stop the thread running in windows service from my
web application when ever the thread running in my web application is
stopped.Is there a way to synchronize.
Thanks

Reply With Quote
  #2  
Old   
Deepak
 
Posts: n/a

Default RE: Windows Services - 07-19-2005 , 02:21 PM






Hello
when ever you start the thread get the name of the thread into a variable.
Call Thread.Abort and pass the name of the thread .
I am not sure whether this will work.
Let me know if you have already found the answer.
Thanks
Deepak

"Vamsi Polavarapu" wrote:

Quote:
Hello,
I have two threads running ,one in my web application and other one in a
windows service.How can i stop the thread running in windows service from my
web application when ever the thread running in my web application is
stopped.Is there a way to synchronize.
Thanks

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.