Click here to Skip to main content
15,918,125 members
Home / Discussions / C#
   

C#

 
GeneralRe: Expression to Check for a String Value in All Properties of a Type Pin
Agent__00728-Oct-14 17:26
professionalAgent__00728-Oct-14 17:26 
AnswerRe: How I Got it (Partially) Done Pin
Agent__00728-Oct-14 17:08
professionalAgent__00728-Oct-14 17:08 
Questioninherit a observablecollection Pin
cicill27-Oct-14 0:39
cicill27-Oct-14 0:39 
AnswerRe: inherit a observablecollection Pin
BillWoodruff27-Oct-14 1:50
professionalBillWoodruff27-Oct-14 1:50 
QuestionExtraction of data from excel to databae Pin
Member 1118244626-Oct-14 21:38
Member 1118244626-Oct-14 21:38 
AnswerRe: Extraction of data from excel to databae Pin
Pete O'Hanlon26-Oct-14 21:41
mvePete O'Hanlon26-Oct-14 21:41 
GeneralRe: Extraction of data from excel to databae Pin
Member 1118244626-Oct-14 21:58
Member 1118244626-Oct-14 21:58 
Questionsimple code for game Pin
cicill26-Oct-14 15:23
cicill26-Oct-14 15:23 
AnswerRe: simple code for game Pin
BillWoodruff26-Oct-14 16:32
professionalBillWoodruff26-Oct-14 16:32 
AnswerRe: simple code for game Pin
Mycroft Holmes26-Oct-14 19:20
professionalMycroft Holmes26-Oct-14 19:20 
AnswerRe: simple code for game Pin
Pete O'Hanlon26-Oct-14 21:38
mvePete O'Hanlon26-Oct-14 21:38 
GeneralRe: simple code for game Pin
harold aptroot27-Oct-14 4:29
harold aptroot27-Oct-14 4:29 
QuestionData binding in wpf Pin
rajeevanagaraj25-Oct-14 2:16
rajeevanagaraj25-Oct-14 2:16 
AnswerRe: Data binding in wpf Pin
Mycroft Holmes25-Oct-14 13:32
professionalMycroft Holmes25-Oct-14 13:32 
QuestionUpload and Save Image Using Webservice Pin
ASPnoob24-Oct-14 23:59
ASPnoob24-Oct-14 23:59 
AnswerRe: Upload and Save Image Using Webservice Pin
CAReed25-Oct-14 4:25
professionalCAReed25-Oct-14 4:25 
GeneralRe: Upload and Save Image Using Webservice Pin
ASPnoob25-Oct-14 7:05
ASPnoob25-Oct-14 7:05 
AnswerRe: Upload and Save Image Using Webservice Pin
Nathan Minier27-Oct-14 1:53
professionalNathan Minier27-Oct-14 1:53 
QuestionApplication could not start error 0xC0000006 starting C# .NET 2.0 program Pin
eljainc24-Oct-14 9:12
eljainc24-Oct-14 9:12 
AnswerRe: Application could not start error 0xC0000006 starting C# .NET 2.0 program Pin
Dave Kreskowiak24-Oct-14 10:26
mveDave Kreskowiak24-Oct-14 10:26 
GeneralRe: Application could not start error 0xC0000006 starting C# .NET 2.0 program Pin
eljainc24-Oct-14 10:39
eljainc24-Oct-14 10:39 
GeneralRe: Application could not start error 0xC0000006 starting C# .NET 2.0 program Pin
Garth J Lancaster24-Oct-14 11:55
professionalGarth J Lancaster24-Oct-14 11:55 
GeneralRe: Application could not start error 0xC0000006 starting C# .NET 2.0 program Pin
eljainc26-Oct-14 1:50
eljainc26-Oct-14 1:50 
GeneralRe: Application could not start error 0xC0000006 starting C# .NET 2.0 program Pin
Dave Kreskowiak26-Oct-14 5:17
mveDave Kreskowiak26-Oct-14 5:17 
QuestionApplication has stopped responding Pin
eljainc24-Oct-14 7:31
eljainc24-Oct-14 7:31 
Hello,

I am receiving an "Application has stopped working" error in my C# WinForms application. The running OS versions are Windows 7 Home Premium, Windows 7 Professional and also a few WinXP Home machines. I have an exception handler set up in my code:

public void MyExceptionHandler
(Object sender, ThreadExceptionEventArgs e)
{

MessageBox.Show("Internal Error" +
"\r\n\r\n" +
e.Exception.Message + "\r\n\r\n" +
"Stack Trace: " + e.Exception.StackTrace, "Oslermedicine® Manager Notification");
}


This code is never called for some reason and Windows handles any errors.

I set up the ThreadException in my _load event for the main form:

Application.ThreadException += MyExceptionHandler;

What would cause this behavior?
I tried to put it in the main loop but then the program becomes very unstable, crashing on other handlers.

Thanks

Mike

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.