Click here to Skip to main content
15,890,995 members
Home / Discussions / C#
   

C#

 
GeneralRe: How do I unit test this? Pin
Member 448708315-Feb-10 6:48
Member 448708315-Feb-10 6:48 
GeneralRe: How do I unit test this? Pin
Jimmanuel15-Feb-10 8:46
Jimmanuel15-Feb-10 8:46 
QuestionCrash inside InitializeComponent() Pin
SimpleData14-Feb-10 0:24
SimpleData14-Feb-10 0:24 
AnswerRe: Crash inside InitializeComponent() Pin
Abhinav S14-Feb-10 0:30
Abhinav S14-Feb-10 0:30 
GeneralRe: Crash inside InitializeComponent() Pin
SimpleData14-Feb-10 0:34
SimpleData14-Feb-10 0:34 
GeneralRe: Crash inside InitializeComponent() Pin
Abhinav S14-Feb-10 0:47
Abhinav S14-Feb-10 0:47 
GeneralRe: Crash inside InitializeComponent() Pin
SimpleData14-Feb-10 1:42
SimpleData14-Feb-10 1:42 
AnswerRe: Crash inside InitializeComponent() Pin
Luc Pattyn14-Feb-10 0:52
sitebuilderLuc Pattyn14-Feb-10 0:52 
Hi,

every WinForm app should have a try-catch around its Application.Run() statement; it would provide a safety net for all mishaps that could occur in the main form's construction. So try it like this:
public static void Main() {
    try {
        ...
        Application.Run(new Form1());
    } catch(Exception exc) {
        Console.WriteLine(exc.ToString());
    }
}


That should give you the stack trace and point you straight at the problem.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.
All Toronto weekends should be extremely wet until we get it automated in regular forums, not just QA.

modified on Sunday, February 14, 2010 7:03 AM

GeneralRe: Crash inside InitializeComponent() Pin
SimpleData14-Feb-10 1:42
SimpleData14-Feb-10 1:42 
QuestionMy .net application stops suddenly , want to know why ? Pin
Dr.DigiTaL13-Feb-10 21:51
Dr.DigiTaL13-Feb-10 21:51 
AnswerRe: My .net application stops suddenly , want to know why ? Pin
Abhinav S13-Feb-10 22:13
Abhinav S13-Feb-10 22:13 
Questionconvert image Pin
reza kia13-Feb-10 20:41
professionalreza kia13-Feb-10 20:41 
AnswerRe: convert image Pin
dan!sh 13-Feb-10 20:51
professional dan!sh 13-Feb-10 20:51 
GeneralRe: convert image Pin
reza kia14-Feb-10 1:34
professionalreza kia14-Feb-10 1:34 
GeneralRe: convert image Pin
dan!sh 14-Feb-10 3:59
professional dan!sh 14-Feb-10 3:59 
GeneralRe: convert image Pin
reza kia14-Feb-10 21:06
professionalreza kia14-Feb-10 21:06 
QuestionHow to read an image from an .xml file can we insert an image in .xml file Pin
koganti.pardhasaradhi13-Feb-10 19:26
koganti.pardhasaradhi13-Feb-10 19:26 
AnswerRe: How to read an image from an .xml file can we insert an image in .xml file Pin
dan!sh 13-Feb-10 20:07
professional dan!sh 13-Feb-10 20:07 
GeneralRe: How to read an image from an .xml file can we insert an image in .xml file Pin
koganti.pardhasaradhi14-Feb-10 3:46
koganti.pardhasaradhi14-Feb-10 3:46 
GeneralRe: How to read an image from an .xml file can we insert an image in .xml file Pin
harold aptroot14-Feb-10 3:53
harold aptroot14-Feb-10 3:53 
GeneralRe: How to read an image from an .xml file can we insert an image in .xml file Pin
dan!sh 14-Feb-10 3:58
professional dan!sh 14-Feb-10 3:58 
QuestionOnPaint() not being called for my custom control...! Pin
kupps13-Feb-10 17:54
kupps13-Feb-10 17:54 
QuestionQuestion on shutting down another program and wating for it to exit. Pin
Zundee13-Feb-10 16:47
Zundee13-Feb-10 16:47 
AnswerRe: Question on shutting down another program and wating for it to exit. Pin
tonyonlinux13-Feb-10 18:18
tonyonlinux13-Feb-10 18:18 
GeneralRe: Question on shutting down another program and wating for it to exit. Pin
Zundee14-Feb-10 11:27
Zundee14-Feb-10 11:27 

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.