Click here to Skip to main content
15,904,935 members
Home / Discussions / C#
   

C#

 
AnswerRe: Getting an Angle for Rotations Pin
Christian Graus6-May-08 15:42
protectorChristian Graus6-May-08 15:42 
GeneralRe: Getting an Angle for Rotations Pin
RedHotFunk7-May-08 16:00
RedHotFunk7-May-08 16:00 
AnswerRe: Getting an Angle for Rotations Pin
Reelix6-May-08 21:26
Reelix6-May-08 21:26 
QuestionMdi Child Pin
hadad6-May-08 12:53
hadad6-May-08 12:53 
AnswerRe: Mdi Child Pin
Anindya Chatterjee6-May-08 18:52
Anindya Chatterjee6-May-08 18:52 
QuestionC# background Worker and Progress Bar help Pin
Relentless6-May-08 11:35
Relentless6-May-08 11:35 
AnswerRe: C# background Worker and Progress Bar help Pin
Christian Graus6-May-08 11:38
protectorChristian Graus6-May-08 11:38 
GeneralRe: C# background Worker and Progress Bar help Pin
Relentless6-May-08 11:42
Relentless6-May-08 11:42 
AnswerRe: C# background Worker and Progress Bar help Pin
Gareth H6-May-08 11:59
Gareth H6-May-08 11:59 
AnswerRe: C# background Worker and Progress Bar help Pin
GuyThiebaut6-May-08 12:24
professionalGuyThiebaut6-May-08 12:24 
GeneralRe: C# background Worker and Progress Bar help Pin
Relentless6-May-08 13:08
Relentless6-May-08 13:08 
GeneralRe: C# background Worker and Progress Bar help Pin
Christian Graus6-May-08 13:11
protectorChristian Graus6-May-08 13:11 
GeneralRe: C# background Worker and Progress Bar help Pin
Relentless6-May-08 13:13
Relentless6-May-08 13:13 
GeneralRe: C# background Worker and Progress Bar help Pin
Christian Graus6-May-08 13:24
protectorChristian Graus6-May-08 13:24 
QuestionWriting output in a windows application Pin
Jerry Graham6-May-08 11:21
Jerry Graham6-May-08 11:21 
AnswerRe: Writing output in a windows application Pin
Pete O'Hanlon6-May-08 11:28
mvePete O'Hanlon6-May-08 11:28 
GeneralRe: Writing output in a windows application Pin
Jerry Graham6-May-08 11:30
Jerry Graham6-May-08 11:30 
AnswerRe: Writing output in a windows application Pin
Gareth H6-May-08 11:30
Gareth H6-May-08 11:30 
AnswerRe: Writing output in a windows application Pin
PIEBALDconsult6-May-08 13:46
mvePIEBALDconsult6-May-08 13:46 
QuestionGet mouse coordinates relative to control in separate application... Pin
Edmundisme6-May-08 10:40
Edmundisme6-May-08 10:40 
AnswerRe: Get mouse coordinates relative to control in separate application... Pin
Christian Graus6-May-08 11:37
protectorChristian Graus6-May-08 11:37 
GeneralRe: Get mouse coordinates relative to control in separate application... Pin
Edmundisme7-May-08 8:21
Edmundisme7-May-08 8:21 
QuestionWindows Service - Service Thread Not Starting Pin
ooten146-May-08 10:03
ooten146-May-08 10:03 
Snippet:

/// <summary><br />
		/// Set things in motion so your service can do its work.<br />
		/// </summary><br />
		protected override void OnStart(string[] args)<br />
		{<br />
			try<br />
			{<br />
				Log("Service Starting");<br />
				<br />
				serviceThread = new Thread(new ThreadStart(runThread));<br />
				serviceThread.Start();<br />
			}<br />
			catch(Exception ex)<br />
			{<br />
				Log("Error: " + ex.Message);<br />
			}<br />
		}<br />
 <br />
		/// <summary><br />
		/// Stop this service.<br />
		/// </summary><br />
		protected override void OnStop()<br />
		{<br />
			Log("Service Stopping");<br />
			serviceThread.Abort();<br />
		}<br />
<br />
		private void runThread()<br />
		{<br />
			Log("Service Thread Running");<br />
			while(true)<br />
			{<br />
				DCNAuditProcessor.DoCheck();<br />
				Thread.Sleep(waitTime);<br />
			}<br />
		}


The runThread Method never runs. The service starts succussfully, but this code is never executed. The Serivce Starting notification and Service Stopping notification is succcessfully logged to a log file, but never the Service Thread Running.

I have reviewed the event logs and there are no errors.

Any ideas would be appreciated.


-Thanks
AnswerRe: Windows Service - Service Thread Not Starting Pin
PIEBALDconsult6-May-08 13:45
mvePIEBALDconsult6-May-08 13:45 
GeneralRe: Windows Service - Service Thread Not Starting Pin
ooten147-May-08 9:16
ooten147-May-08 9:16 

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.