Click here to Skip to main content
16,008,469 members
Home / Discussions / C#
   

C#

 
GeneralRe: Help using Threads with an applications SDK [modified] Pin
__rob19-Dec-08 15:44
__rob19-Dec-08 15:44 
GeneralRe: Help using Threads with an applications SDK Pin
Luc Pattyn19-Dec-08 16:06
sitebuilderLuc Pattyn19-Dec-08 16:06 
QuestionParamter @ Model has no default value? Pin
dec8219-Dec-08 12:34
dec8219-Dec-08 12:34 
AnswerRe: Paramter @ Model has no default value? Pin
PIEBALDconsult19-Dec-08 12:45
mvePIEBALDconsult19-Dec-08 12:45 
QuestionWhat technique to use to keep my application running ... ? Pin
Yanshof19-Dec-08 11:45
Yanshof19-Dec-08 11:45 
AnswerRe: What technique to use to keep my application running ... ? Pin
Joel Ivory Johnson19-Dec-08 12:04
professionalJoel Ivory Johnson19-Dec-08 12:04 
GeneralRe: What technique to use to keep my application running ... ? Pin
Yanshof19-Dec-08 12:55
Yanshof19-Dec-08 12:55 
GeneralRe: What technique to use to keep my application running ... ? Pin
Colin Angus Mackay19-Dec-08 14:40
Colin Angus Mackay19-Dec-08 14:40 
Yanshof wrote:
When you run some appliction by create some class in the Main you will exit the application when the class will done


Incorrect, it will run until the Main method terminates. Because you are using Application.Run() in the Main method, it will run until the GUI component (the form derived object you supply to the run method) is closed (e.g. it receives the WM_CLOSE event)


Yanshof wrote:
and i need some way to continue run my application forever


Infinite loops - That is effectively what the message pump is (the bit that keeps your GUI application running)


Yanshof wrote:
that meen that i need to run some "forever" method in the constructor of the class that will not stop at all.


forever... That sounds a lot like a for statement could be useful...


Yanshof wrote:
But i want to do it without using UI class.


Yes, the correct way, as you've already been told, is to make the application a Windows Service.


Yanshof wrote:
Is there is some way to do it ?


If you want to do it correctly (which you don't seem to, but I'll say it anyway) is to make your application a Windows Service.

Out of curiosity, why don't you want to make it a Windows Service?


AnswerRe: What technique to use to keep my application running ... ? Pin
Luc Pattyn19-Dec-08 13:12
sitebuilderLuc Pattyn19-Dec-08 13:12 
GeneralRe: What technique to use to keep my application running ... ? Pin
PIEBALDconsult19-Dec-08 13:30
mvePIEBALDconsult19-Dec-08 13:30 
GeneralRe: What technique to use to keep my application running ... ? Pin
Luc Pattyn19-Dec-08 13:48
sitebuilderLuc Pattyn19-Dec-08 13:48 
QuestionA form's minimum height Pin
Andrew Paul19-Dec-08 9:39
Andrew Paul19-Dec-08 9:39 
AnswerRe: A form's minimum height Pin
Dave Kreskowiak19-Dec-08 9:58
mveDave Kreskowiak19-Dec-08 9:58 
GeneralRe: A form's minimum height Pin
Andrew Paul19-Dec-08 10:27
Andrew Paul19-Dec-08 10:27 
GeneralRe: A form's minimum height Pin
Dave Kreskowiak19-Dec-08 15:48
mveDave Kreskowiak19-Dec-08 15:48 
GeneralRe: A form's minimum height Pin
Andrew Paul19-Dec-08 15:53
Andrew Paul19-Dec-08 15:53 
AnswerRe: A form's minimum height Pin
Luc Pattyn19-Dec-08 10:17
sitebuilderLuc Pattyn19-Dec-08 10:17 
GeneralRe: A form's minimum height Pin
Andrew Paul19-Dec-08 10:25
Andrew Paul19-Dec-08 10:25 
GeneralRe: A form's minimum height Pin
Luc Pattyn19-Dec-08 10:57
sitebuilderLuc Pattyn19-Dec-08 10:57 
Questionproblems with myclass Pin
mirko8619-Dec-08 8:39
mirko8619-Dec-08 8:39 
AnswerRe: problems with myclass Pin
Wes Aday19-Dec-08 8:49
professionalWes Aday19-Dec-08 8:49 
GeneralRe: problems with myclass Pin
mirko8619-Dec-08 8:51
mirko8619-Dec-08 8:51 
AnswerRe: problems with myclass Pin
Adam Maras19-Dec-08 8:51
Adam Maras19-Dec-08 8:51 
GeneralRe: problems with myclass Pin
mirko8619-Dec-08 8:58
mirko8619-Dec-08 8:58 
GeneralRe: problems with myclass Pin
#realJSOP19-Dec-08 9:38
professional#realJSOP19-Dec-08 9:38 

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.