Click here to Skip to main content
15,889,852 members
Home / Discussions / C#
   

C#

 
GeneralRe: error stop a Windows service Pin
George_George29-May-08 21:58
George_George29-May-08 21:58 
GeneralRe: error stop a Windows service Pin
leppie29-May-08 22:05
leppie29-May-08 22:05 
GeneralRe: error stop a Windows service Pin
George_George29-May-08 23:22
George_George29-May-08 23:22 
GeneralRe: error stop a Windows service Pin
leppie29-May-08 23:55
leppie29-May-08 23:55 
GeneralRe: error stop a Windows service Pin
George_George30-May-08 0:03
George_George30-May-08 0:03 
GeneralRe: error stop a Windows service Pin
Zoltan Balazs29-May-08 22:08
Zoltan Balazs29-May-08 22:08 
GeneralRe: error stop a Windows service Pin
George_George29-May-08 23:21
George_George29-May-08 23:21 
AnswerRe: error stop a Windows service Pin
#realJSOP29-May-08 23:22
mve#realJSOP29-May-08 23:22 
This is the (simplified) body of most thread functions I use in my services...

ServiceController controller = new ServiceController(this.ServiceName);
while (true)
{
	if (controller.Status == ServiceControllerStatus.Running)
	{
		Thread.Sleep(4500);
	}
}



"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001


GeneralRe: error stop a Windows service Pin
George_George29-May-08 23:38
George_George29-May-08 23:38 
GeneralRe: error stop a Windows service Pin
#realJSOP30-May-08 0:41
mve#realJSOP30-May-08 0:41 
GeneralRe: error stop a Windows service Pin
George_George31-May-08 1:27
George_George31-May-08 1:27 
QuestionByte to Bool Array Pin
half-life29-May-08 21:08
half-life29-May-08 21:08 
AnswerRe: Byte to Bool Array Pin
leppie29-May-08 21:58
leppie29-May-08 21:58 
GeneralRe: Byte to Bool Array Pin
half-life29-May-08 22:41
half-life29-May-08 22:41 
GeneralRe: Byte to Bool Array Pin
Guffa30-May-08 0:39
Guffa30-May-08 0:39 
Questiondll... load another version... Pin
JoZ CaVaLLo29-May-08 21:08
JoZ CaVaLLo29-May-08 21:08 
AnswerRe: dll... load another version... Pin
leppie29-May-08 21:59
leppie29-May-08 21:59 
GeneralRe: dll... load another version... Pin
JoZ CaVaLLo30-May-08 0:05
JoZ CaVaLLo30-May-08 0:05 
QuestionPanel's MouseUp event firing on Form resize Pin
dan!sh 29-May-08 21:04
professional dan!sh 29-May-08 21:04 
QuestionRe: Panel's MouseUp event firing on Form resize Pin
buchstaben29-May-08 22:45
buchstaben29-May-08 22:45 
AnswerRe: Panel's MouseUp event firing on Form resize Pin
dan!sh 29-May-08 22:57
professional dan!sh 29-May-08 22:57 
AnswerRe: Panel's MouseUp event firing on Form resize Pin
buchstaben29-May-08 23:06
buchstaben29-May-08 23:06 
GeneralRe: Panel's MouseUp event firing on Form resize Pin
leppie29-May-08 23:09
leppie29-May-08 23:09 
GeneralRe: Panel's MouseUp event firing on Form resize Pin
buchstaben29-May-08 23:13
buchstaben29-May-08 23:13 
GeneralRe: Panel's MouseUp event firing on Form resize Pin
leppie29-May-08 23:57
leppie29-May-08 23:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.