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

C#

 
Questionhow to restart console application? Pin
buchstaben28-Feb-08 23:43
buchstaben28-Feb-08 23:43 
AnswerRe: how to restart console application? Pin
Colin Angus Mackay29-Feb-08 0:41
Colin Angus Mackay29-Feb-08 0:41 
GeneralRe: how to restart console application? Pin
buchstaben29-Feb-08 2:38
buchstaben29-Feb-08 2:38 
GeneralRe: how to restart console application? Pin
Colin Angus Mackay29-Feb-08 2:55
Colin Angus Mackay29-Feb-08 2:55 
GeneralRe: how to restart console application? Pin
buchstaben29-Feb-08 4:01
buchstaben29-Feb-08 4:01 
AnswerRe: how to restart console application? Pin
Pete O'Hanlon29-Feb-08 0:42
mvePete O'Hanlon29-Feb-08 0:42 
GeneralRe: how to restart console application? Pin
buchstaben29-Feb-08 2:37
buchstaben29-Feb-08 2:37 
GeneralRe: how to restart console application? Pin
Colin Angus Mackay29-Feb-08 2:52
Colin Angus Mackay29-Feb-08 2:52 
buchstaben wrote:
calling main again would result in two running applications.


No it wouldn't. It would be the same application but the starting point is called for a second time.


buchstaben wrote:
there are some background activities running in my app. in the main thread somewhere i'm waiting until all backgound processes finished. but if a certain time elapsed, i dont want to wait anymore and restart application, since there might be a hangup in any background process.


I'm not sure you are using the word process correctly here. Do you mean process as in a ancillary application (which would be the correct use of the word) or process as in another thread?

If you mean process as in other processes (ancillary applications) then just kill the processes.

If you mean process as in another thread then kill the threads.


GeneralRe: how to restart console application? Pin
buchstaben29-Feb-08 3:59
buchstaben29-Feb-08 3:59 
GeneralRe: how to restart console application? Pin
Pete O'Hanlon29-Feb-08 3:43
mvePete O'Hanlon29-Feb-08 3:43 
GeneralRe: how to restart console application? Pin
buchstaben29-Feb-08 4:47
buchstaben29-Feb-08 4:47 
GeneralControls - checkbox Pin
CodingLover28-Feb-08 23:35
CodingLover28-Feb-08 23:35 
GeneralRe: Controls - checkbox Pin
Laddie28-Feb-08 23:43
Laddie28-Feb-08 23:43 
GeneralRe: Controls - checkbox Pin
yogesh_kumar_agarwal28-Feb-08 23:43
yogesh_kumar_agarwal28-Feb-08 23:43 
GeneralRe: Controls - checkbox Pin
CodingLover28-Feb-08 23:52
CodingLover28-Feb-08 23:52 
GeneralRe: Controls - checkbox Pin
Laddie28-Feb-08 23:54
Laddie28-Feb-08 23:54 
GeneralRe: Controls - checkbox Pin
Luc Pattyn29-Feb-08 0:11
sitebuilderLuc Pattyn29-Feb-08 0:11 
GeneralRe: Controls - checkbox Pin
Seattle29-Feb-08 1:03
Seattle29-Feb-08 1:03 
GeneralBackup the registry settings. Pin
CodingLover28-Feb-08 22:28
CodingLover28-Feb-08 22:28 
GeneralRe: Backup the registry settings. Pin
Laddie28-Feb-08 22:35
Laddie28-Feb-08 22:35 
GeneralRe: Backup the registry settings. Pin
CodingLover28-Feb-08 22:41
CodingLover28-Feb-08 22:41 
GeneralRe: Backup the registry settings. Pin
buchstaben28-Feb-08 22:49
buchstaben28-Feb-08 22:49 
GeneralRe: Backup the registry settings. Pin
Laddie28-Feb-08 22:55
Laddie28-Feb-08 22:55 
GeneralRe: Backup the registry settings. Pin
CodingLover28-Feb-08 23:20
CodingLover28-Feb-08 23:20 
GeneralFont problem in windows Vista Pin
D i x y28-Feb-08 22:12
D i x y28-Feb-08 22:12 

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.