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

C#

 
GeneralRe: set enter key instead of tab key Pin
Jay Shankar4-Nov-04 15:03
Jay Shankar4-Nov-04 15:03 
GeneralRe: set enter key instead of tab key Pin
amalatsliit10-Mar-05 18:08
amalatsliit10-Mar-05 18:08 
Generalhelp with a new control Pin
tom_dx3-Nov-04 16:03
tom_dx3-Nov-04 16:03 
GeneralRe: help with a new control Pin
sreejith ss nair3-Nov-04 16:55
sreejith ss nair3-Nov-04 16:55 
GeneralRe: help with a new control Pin
Dave Kreskowiak3-Nov-04 17:18
mveDave Kreskowiak3-Nov-04 17:18 
GeneralRe: help with a new control Pin
Roger Alsing4-Nov-04 2:26
Roger Alsing4-Nov-04 2:26 
GeneralRe: help with a new control Pin
Dave Kreskowiak4-Nov-04 6:23
mveDave Kreskowiak4-Nov-04 6:23 
GeneralBest Practice For .NET Service Pin
SigEpUCI3-Nov-04 15:07
SigEpUCI3-Nov-04 15:07 
Hi,

I wrote a .NET Windows service that spawns a thread which periodically performs some DB related work. When the service starts, it spawns the thread, when the service stops, it aborts the thread.


The thread sleeps for 30 seconds, then wakes ups and querys some DB values, then sleeps again in an infinite loop.


A friend suggested that I Use a timer instead of a sleeping thread, and I could not think of an explicit reason why each approach is better. What approach would you take and why?

Thanks,
Jeff


GeneralRe: Best Practice For .NET Service Pin
sreejith ss nair3-Nov-04 16:59
sreejith ss nair3-Nov-04 16:59 
GeneralRe: Best Practice For .NET Service Pin
Dave Kreskowiak3-Nov-04 17:17
mveDave Kreskowiak3-Nov-04 17:17 
GeneralRe: Best Practice For .NET Service Pin
Sebastian Schneider4-Nov-04 22:40
Sebastian Schneider4-Nov-04 22:40 
Generalparsing Pin
webhay3-Nov-04 14:17
webhay3-Nov-04 14:17 
GeneralRe: parsing Pin
Dave Kreskowiak3-Nov-04 17:14
mveDave Kreskowiak3-Nov-04 17:14 
GeneralRe: parsing Pin
Charlie Williams3-Nov-04 17:15
Charlie Williams3-Nov-04 17:15 
GeneralRe: parsing Pin
webhay4-Nov-04 1:03
webhay4-Nov-04 1:03 
GeneralRe: parsing Pin
webhay4-Nov-04 1:03
webhay4-Nov-04 1:03 
GeneralRe: parsing Pin
J4amieC4-Nov-04 2:54
J4amieC4-Nov-04 2:54 
GeneralRe: parsing Pin
webhay4-Nov-04 3:17
webhay4-Nov-04 3:17 
Generalfile reading and access database Pin
aquahawk3-Nov-04 11:36
aquahawk3-Nov-04 11:36 
GeneralRe: file reading and access database Pin
HahnTech3-Nov-04 12:09
HahnTech3-Nov-04 12:09 
Generalinput string not in a correct format Pin
webhay3-Nov-04 9:24
webhay3-Nov-04 9:24 
GeneralRe: input string not in a correct format Pin
Jordi Corominas3-Nov-04 10:54
Jordi Corominas3-Nov-04 10:54 
GeneralRe: input string not in a correct format Pin
Dave Kreskowiak3-Nov-04 11:48
mveDave Kreskowiak3-Nov-04 11:48 
GeneralRe: input string not in a correct format Pin
webhay3-Nov-04 12:01
webhay3-Nov-04 12:01 
GeneralRe: input string not in a correct format Pin
Dave Kreskowiak3-Nov-04 17:08
mveDave Kreskowiak3-Nov-04 17:08 

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.