Click here to Skip to main content
15,901,001 members
Home / Discussions / C#
   

C#

 
GeneralTell me Default Encoding technique Pin
shumyla198323-May-05 17:02
shumyla198323-May-05 17:02 
GeneralString of Bits to Byte[ ] Conversion Pin
gordsh23-May-05 15:59
gordsh23-May-05 15:59 
GeneralRe: String of Bits to Byte[ ] Conversion Pin
S. Senthil Kumar23-May-05 18:11
S. Senthil Kumar23-May-05 18:11 
GeneralRe: String of Bits to Byte[ ] Conversion Pin
Robert Rohde23-May-05 20:33
Robert Rohde23-May-05 20:33 
GeneralRe: String of Bits to Byte[ ] Conversion Pin
gordsh24-May-05 15:51
gordsh24-May-05 15:51 
GeneralShow hidden forms Pin
methodincharge23-May-05 13:30
methodincharge23-May-05 13:30 
GeneralRe: Show hidden forms Pin
Rob Tomson23-May-05 13:42
Rob Tomson23-May-05 13:42 
GeneralRe: Show hidden forms Pin
methodincharge23-May-05 13:56
methodincharge23-May-05 13:56 
GeneralRe: Show hidden forms Pin
Skynyrd24-May-05 6:55
Skynyrd24-May-05 6:55 
GeneralRe: Show hidden forms Pin
methodincharge24-May-05 7:38
methodincharge24-May-05 7:38 
GeneralRe: Show hidden forms Pin
Skynyrd24-May-05 21:41
Skynyrd24-May-05 21:41 
GeneralRe: Show hidden forms Pin
methodincharge25-May-05 2:02
methodincharge25-May-05 2:02 
GeneralRe: Show hidden forms Pin
methodincharge25-May-05 14:03
methodincharge25-May-05 14:03 
GeneralShow xml node in text box without losing formatting Pin
PrachiB23-May-05 12:41
PrachiB23-May-05 12:41 
GeneralRe: Show xml node in text box without losing formatting Pin
DavidNohejl23-May-05 12:58
DavidNohejl23-May-05 12:58 
GeneralRe: Show xml node in text box without losing formatting Pin
PrachiB23-May-05 13:16
PrachiB23-May-05 13:16 
GeneralRe: Show xml node in text box without losing formatting Pin
J4amieC23-May-05 21:42
J4amieC23-May-05 21:42 
GeneralRe: Show xml node in text box without losing formatting Pin
DavidNohejl23-May-05 23:24
DavidNohejl23-May-05 23:24 
GeneralRe: Show xml node in text box without losing formatting Pin
eggie524-May-05 12:58
eggie524-May-05 12:58 
Generaltextbox transparent Pin
Sasuko23-May-05 12:07
Sasuko23-May-05 12:07 
GeneralRe: textbox transparent Pin
Christian Graus23-May-05 12:18
protectorChristian Graus23-May-05 12:18 
GeneralDrawing cube with directx Pin
Kiki9923-May-05 11:50
Kiki9923-May-05 11:50 
GeneralRe: Drawing cube with directx Pin
Christian Graus23-May-05 12:20
protectorChristian Graus23-May-05 12:20 
Generalexception not catching Pin
Rob Tomson23-May-05 11:39
Rob Tomson23-May-05 11:39 
I'm trying to implement an error report in my program so that when it crashes it pops up a dialog that allows you to fill in some information and then send it along through email. The problem that I'm having is when I debug the program in VS it crashes gracefully, just like it's supposed to. But when I run it as a standalone .exe it just errors as if there is no try/catch statement. This is what I have for my Main function. If there are any suggestions please let me know.

<br />
static void Main() <br />
{<br />
  try<br />
  {<br />
    System.Windows.Forms.Application.EnableVisualStyles();<br />
    System.Windows.Forms.Application.Run(new frmMDI());<br />
  }<br />
  catch(System.Exception e)<br />
  {<br />
    System.Windows.Forms.Application.Run(new frmErrorReport(e));<br />
    //frmErrorReport frm = new frmErrorReport(e);<br />
    //frm.ShowDialog();    <----- I've also tried this but I get the same results<br />
  }<br />
}<br />


--
There are 10 kinds of people. Those who understand binary and those who don't.

GeneralRe: exception not catching Pin
Christian Graus23-May-05 12:00
protectorChristian Graus23-May-05 12:00 

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.