Click here to Skip to main content
15,913,685 members
Home / Discussions / C#
   

C#

 
GeneralRe: Problem with setwindowPOS and returning from topmost to standard window position? Pin
turbosupramk36-Jan-18 12:09
turbosupramk36-Jan-18 12:09 
GeneralRe: Problem with setwindowPOS and returning from topmost to standard window position? Pin
Richard MacCutchan6-Jan-18 20:44
mveRichard MacCutchan6-Jan-18 20:44 
Questionusing MVC in WPF Pin
abboudi_ammar1-Jan-18 5:38
abboudi_ammar1-Jan-18 5:38 
AnswerRe: using MVC in WPF Pin
Dave Kreskowiak1-Jan-18 6:16
mveDave Kreskowiak1-Jan-18 6:16 
GeneralRe: using MVC in WPF Pin
abboudi_ammar1-Jan-18 6:24
abboudi_ammar1-Jan-18 6:24 
GeneralRe: using MVC in WPF Pin
Dave Kreskowiak1-Jan-18 7:27
mveDave Kreskowiak1-Jan-18 7:27 
Questionstruck in launching .exe file created using c# using windows service. Pin
Mohiyuddin Khan1-Jan-18 2:33
Mohiyuddin Khan1-Jan-18 2:33 
AnswerRe: struck in launching .exe file created using c# using windows service. Pin
OriginalGriff1-Jan-18 2:41
mveOriginalGriff1-Jan-18 2:41 
GeneralRe: struck in launching .exe file created using c# using windows service. Pin
Mohiyuddin Khan1-Jan-18 3:15
Mohiyuddin Khan1-Jan-18 3:15 
GeneralRe: struck in launching .exe file created using c# using windows service. Pin
OriginalGriff1-Jan-18 3:37
mveOriginalGriff1-Jan-18 3:37 
GeneralRe: struck in launching .exe file created using c# using windows service. Pin
Mohiyuddin Khan1-Jan-18 3:50
Mohiyuddin Khan1-Jan-18 3:50 
GeneralRe: struck in launching .exe file created using c# using windows service. Pin
OriginalGriff1-Jan-18 4:19
mveOriginalGriff1-Jan-18 4:19 
GeneralRe: struck in launching .exe file created using c# using windows service. Pin
Mohiyuddin Khan1-Jan-18 18:16
Mohiyuddin Khan1-Jan-18 18:16 
GeneralRe: struck in launching .exe file created using c# using windows service. Pin
Mohiyuddin Khan1-Jan-18 23:16
Mohiyuddin Khan1-Jan-18 23:16 
GeneralRe: struck in launching .exe file created using c# using windows service. Pin
OriginalGriff1-Jan-18 23:31
mveOriginalGriff1-Jan-18 23:31 
AnswerRe: struck in launching .exe file created using c# using windows service. Pin
jschell1-Jan-18 6:45
jschell1-Jan-18 6:45 
The comments about the UI in the other sub-thread, as far as I can tell, have no relevance to the code posted.

Presumably your log messages are showing up. Your code appears to be correctly handling potential exceptions HOWEVER you should log the stack trace also.

Finally, as to your problem...

Far as I can tell you do not seem to be actually starting the timer.

If true then what will happen is that your OnStart method will exit, which means no threads will be running in the service. Windows knows that threads are running and will not mark it as running unless one thread is running.
GeneralRe: struck in launching .exe file created using c# using windows service. Pin
Mohiyuddin Khan1-Jan-18 20:20
Mohiyuddin Khan1-Jan-18 20:20 
GeneralRe: struck in launching .exe file created using c# using windows service. Pin
jschell3-Jan-18 13:05
jschell3-Jan-18 13:05 
AnswerRe: struck in launching .exe file created using c# using windows service. Pin
Gerry Schmitz1-Jan-18 7:42
mveGerry Schmitz1-Jan-18 7:42 
QuestionDo you know any good unit testing and mocking frameworks for C#? Pin
JamesRichmond31-Dec-17 23:49
JamesRichmond31-Dec-17 23:49 
AnswerRe: Do you know any good unit testing and mocking frameworks for C#? Pin
jschell1-Jan-18 6:48
jschell1-Jan-18 6:48 
AnswerRe: Do you know any good unit testing and mocking frameworks for C#? Pin
Pete O'Hanlon1-Jan-18 9:29
mvePete O'Hanlon1-Jan-18 9:29 
AnswerRe: Do you know any good unit testing and mocking frameworks for C#? Pin
Alex Schunk8-Jan-18 7:10
Alex Schunk8-Jan-18 7:10 
Questiondownload pdf from pdfdrive.net Pin
Arnav Das31-Dec-17 20:38
Arnav Das31-Dec-17 20:38 
AnswerRe: download pdf from pdfdrive.net PinPopular
OriginalGriff31-Dec-17 20:46
mveOriginalGriff31-Dec-17 20:46 

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.