Click here to Skip to main content
       

C#

 
AnswerRe: "new" to hide base class implementation - is it useless? PinmemberKeld Ølykke30-Jan-13 21:03 
GeneralRe: "new" to hide base class implementation - is it useless? Pinmemberdevvvy30-Jan-13 21:11 
GeneralRe: "new" to hide base class implementation - is it useless? PinmemberKeld Ølykke31-Jan-13 0:45 
GeneralRe: "new" to hide base class implementation - is it useless? Pinmemberdevvvy31-Jan-13 16:33 
GeneralRe: "new" to hide base class implementation - is it useless? PinmemberKeld Ølykke31-Jan-13 21:56 
GeneralRe: "new" to hide base class implementation - is it useless? Pinmemberdevvvy1-Feb-13 15:54 
AnswerRe: "new" to hide base class implementation - is it useless? [modified] Pinmembermarkovl30-Jan-13 22:20 
GeneralRe: "new" to hide base class implementation - is it useless? Pinmemberdevvvy31-Jan-13 16:30 
AnswerRe: "new" to hide base class implementation - is it useless? [modified] PinmemberShameel31-Jan-13 2:07 
AnswerRe: "new" to hide base class implementation - is it useless? PinmvpAbhinav S31-Jan-13 7:25 
GeneralRe: "new" to hide base class implementation - is it useless? Pinmemberdevvvy31-Jan-13 16:40 
GeneralRe: "new" to hide base class implementation - is it useless? PinmvpAbhinav S31-Jan-13 23:26 
GeneralRe: "new" to hide base class implementation - is it useless? Pinmemberdevvvy1-Feb-13 15:56 
QuestionCatching unhandled ThreadAbortException from Main? Pinmemberdevvvy30-Jan-13 15:56 
Hi, is there any fool proof way to catch unhandled thread exception, whether it's a ThreadAbortException (caused by Thread.Abort from "Main" or UI thread) or a DivisionByZeroException (happenning within the thread function)?
 
I know the following won't catch it:

AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(UnhandledExHandler);

 
And I don't think all developers will implement try-catch-finally on thread functions. How do you handle this?
 
I know for WPF app, in App.xaml you can define general handler for unhandled exceptions (But this will NOT catch Thread exceptions). For example, the following will NOT work:

private void Application_DispatcherUnhandledException_1(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
{
string Message = "Unhandled exception: " + e.Exception.ToString();
MessageBox.Show(Message);
return;
}

dev

AnswerRe: Catching unhandled ThreadAbortException from Main? PinmemberAndy41130-Jan-13 23:37 
AnswerRe: Catching unhandled ThreadAbortException from Main? PinmemberShameel31-Jan-13 4:49 
AnswerRe: Catching unhandled ThreadAbortException from Main? Pinmemberjschell31-Jan-13 9:29 
GeneralRe: Catching unhandled ThreadAbortException from Main? Pinmemberdevvvy31-Jan-13 16:43 
GeneralRe: Catching unhandled ThreadAbortException from Main? Pinmemberjschell2-Feb-13 8:53 
AnswerRe: Catching unhandled ThreadAbortException from Main? PinmemberKeld Ølykke31-Jan-13 22:15 
QuestionGo to finally in try block Pinmembervanikanc30-Jan-13 8:25 
AnswerRe: Go to finally in try block Pinmemberjibesh30-Jan-13 8:35 
GeneralRe: Go to finally in try block Pinmembervanikanc30-Jan-13 8:37 
GeneralRe: Go to finally in try block Pinmemberjibesh30-Jan-13 8:41 
GeneralRe: Go to finally in try block Pinmembervanikanc30-Jan-13 8:42 
GeneralRe: Go to finally in try block Pinmemberjibesh30-Jan-13 8:44 
GeneralRe: Go to finally in try block Pinmemberdevvvy31-Jan-13 16:44 
AnswerRe: Go to finally in try block PinmvpEddy Vluggen30-Jan-13 8:45 
AnswerRe: Go to finally in try block PinmemberPIEBALDconsult30-Jan-13 8:53 
AnswerRe: Go to finally in try block Pinmemberjschell30-Jan-13 9:04 
AnswerRe: Go to finally in try block PinmvpAbhinav S30-Jan-13 22:32 
AnswerRe: Go to finally in try block PinmemberV.30-Jan-13 23:10 
AnswerRe: Go to finally in try block PinmvpRahul Rajat Singh30-Jan-13 23:15 
AnswerRe: Go to finally in try block PinmvpRahul Rajat Singh30-Jan-13 23:18 
GeneralRe: Go to finally in try block Pinmemberdevvvy31-Jan-13 16:46 
QuestionUnit Conversion Application - C#, IIS, ASP.NET 4.0, WCF, Windows form app PinmemberMacRuturaj30-Jan-13 8:07 
AnswerRe: Unit Conversion Application - C#, IIS, ASP.NET 4.0, WCF, Windows form app PinmemberEnnis Ray Lynch, Jr.30-Jan-13 8:16 
GeneralRe: Unit Conversion Application - C#, IIS, ASP.NET 4.0, WCF, Windows form app PinmemberMacRuturaj30-Jan-13 8:19 
GeneralRe: Unit Conversion Application - C#, IIS, ASP.NET 4.0, WCF, Windows form app PinmemberEnnis Ray Lynch, Jr.30-Jan-13 8:28 
AnswerRe: Unit Conversion Application - C#, IIS, ASP.NET 4.0, WCF, Windows form app PinmemberPIEBALDconsult30-Jan-13 8:22 
GeneralRe: Unit Conversion Application - C#, IIS, ASP.NET 4.0, WCF, Windows form app PinmemberMacRuturaj30-Jan-13 8:24 
AnswerRe: Unit Conversion Application - C#, IIS, ASP.NET 4.0, WCF, Windows form app PinmvpEddy Vluggen30-Jan-13 8:22 
GeneralRe: Unit Conversion Application - C#, IIS, ASP.NET 4.0, WCF, Windows form app PinmemberMacRuturaj30-Jan-13 8:29 
AnswerRe: Unit Conversion Application - C#, IIS, ASP.NET 4.0, WCF, Windows form app PinmvpEddy Vluggen30-Jan-13 8:32 
GeneralRe: Unit Conversion Application - C#, IIS, ASP.NET 4.0, WCF, Windows form app PinmemberMacRuturaj30-Jan-13 8:31 
GeneralRe: Unit Conversion Application - C#, IIS, ASP.NET 4.0, WCF, Windows form app PinmvpEddy Vluggen30-Jan-13 8:42 
GeneralRe: Unit Conversion Application - C#, IIS, ASP.NET 4.0, WCF, Windows form app PinmemberMacRuturaj30-Jan-13 8:49 
QuestionNLog question Pinmembervanikanc30-Jan-13 6:46 
AnswerRe: NLog question PinmvpAbhinav S30-Jan-13 7:09 
QuestionHttpWebRequest Resolving to the wrong IP Address PinmemberEnnis Ray Lynch, Jr.30-Jan-13 5:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web01 | 2.8.141223.1 | Last Updated 28 Dec 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid