Click here to Skip to main content
15,891,846 members
Home / Discussions / C#
   

C#

 
JokeRe: Environment Exit (??) Pin
Roger Wright17-Apr-12 19:50
professionalRoger Wright17-Apr-12 19:50 
GeneralRe: Environment Exit (??) Pin
Dave Kreskowiak18-Apr-12 6:02
mveDave Kreskowiak18-Apr-12 6:02 
AnswerRe: Environment Exit (??) PinPopular
VJ Reddy17-Apr-12 18:23
VJ Reddy17-Apr-12 18:23 
GeneralRe: Environment Exit (??) Pin
Vipin_Arora18-Apr-12 0:51
Vipin_Arora18-Apr-12 0:51 
GeneralRe: Environment Exit (??) Pin
VJ Reddy18-Apr-12 1:05
VJ Reddy18-Apr-12 1:05 
GeneralRe: Environment Exit (??) Pin
Dave Kreskowiak18-Apr-12 6:03
mveDave Kreskowiak18-Apr-12 6:03 
AnswerRe: Environment Exit (??) Pin
PIEBALDconsult17-Apr-12 19:00
mvePIEBALDconsult17-Apr-12 19:00 
GeneralRe: Environment Exit (??) Pin
jschell18-Apr-12 9:00
jschell18-Apr-12 9:00 
PIEBALDconsult wrote:

It's needless, don't use it.


No it isn't.

If one creates a windows service and threads remain running when the service does a normal exit then the service will continue to run requiring one to kill it.

Exit() terminates all threads.

And if one wants to do dynamic batch processing or any other process management processing with executables then Exit() can be used to return information to the caller. This is normally going to be less useful than services but since the only way to truly isolate unmanaged code is in another process it can on rare occassions be useful.
GeneralRe: Environment Exit (??) Pin
PIEBALDconsult18-Apr-12 14:34
mvePIEBALDconsult18-Apr-12 14:34 
GeneralRe: Environment Exit (??) Pin
jschell19-Apr-12 8:15
jschell19-Apr-12 8:15 
JokeRe: Environment Exit (??) Pin
PIEBALDconsult19-Apr-12 8:50
mvePIEBALDconsult19-Apr-12 8:50 
AnswerRe: Environment Exit (??) Pin
Midnight Ahri18-Apr-12 16:12
Midnight Ahri18-Apr-12 16:12 
GeneralRe: Environment Exit (??) Pin
jschell19-Apr-12 8:20
jschell19-Apr-12 8:20 
GeneralRe: Environment Exit (??) Pin
S@53K^S20-Apr-12 2:34
S@53K^S20-Apr-12 2:34 
QuestionYaml Parser C# Pin
Member 884142017-Apr-12 11:47
Member 884142017-Apr-12 11:47 
AnswerRe: Yaml Parser C# Pin
Richard Andrew x6417-Apr-12 11:56
professionalRichard Andrew x6417-Apr-12 11:56 
GeneralRe: Yaml Parser C# Pin
Roger Wright17-Apr-12 19:46
professionalRoger Wright17-Apr-12 19:46 
GeneralRe: Yaml Parser C# Pin
Pete O'Hanlon17-Apr-12 21:38
mvePete O'Hanlon17-Apr-12 21:38 
QuestionHow to dynamically bind datasource to RDLC report Pin
maniceca17-Apr-12 10:48
maniceca17-Apr-12 10:48 
QuestionAny progammers in the Oak Harbor, WA area? Pin
jeramyRR17-Apr-12 6:30
jeramyRR17-Apr-12 6:30 
AnswerRe: Any progammers in the Oak Harbor, WA area? Pin
Abhinav S17-Apr-12 7:00
Abhinav S17-Apr-12 7:00 
GeneralRe: Any progammers in the Oak Harbor, WA area? Pin
jeramyRR17-Apr-12 8:42
jeramyRR17-Apr-12 8:42 
Questiondesign of a commercial site Pin
tuhami17-Apr-12 6:09
tuhami17-Apr-12 6:09 
AnswerRe: design of a commercial site Pin
Eddy Vluggen17-Apr-12 6:31
professionalEddy Vluggen17-Apr-12 6:31 
AnswerRe: design of a commercial site Pin
Abhinav S17-Apr-12 7:03
Abhinav S17-Apr-12 7:03 

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.