Hello everyone,
For the default approach for a console application or Windows service written in C#, if there is an uncaught exception, the console application or the Windows service will terminate? Right?
thanks in advance,
George
Hello everyone,
For the default approach for a console application or Windows service written in C#, if there is an uncaught exception, the console application or the Windows service will terminate? Right?
thanks in advance,
George
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Scott LysleRank #49 · 31K reputationPosted Apr 26, 2008, 2:02 AM EDT
George GeorgeRank #1,736 · 870 reputationPosted Apr 26, 2008, 5:09 AM EDT
Thanks,
1.
You mean for normal console application, it will terminates dues to uncaught exception, but for Windows service, it could restart when terminates dues to uncaught exception?
2.
If yes to (1), how to configure? In C# API or somewhere else?
regards,
George