Click here to Skip to main content
15,892,517 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: exception not catching Pin
Rob Tomson23-May-05 12:05
Rob Tomson23-May-05 12:05 
GeneralRe: exception not catching Pin
Christian Graus23-May-05 12:16
protectorChristian Graus23-May-05 12:16 
GeneralRe: exception not catching Pin
Rob Tomson23-May-05 12:32
Rob Tomson23-May-05 12:32 
GeneralRe: exception not catching Pin
Christian Graus23-May-05 13:15
protectorChristian Graus23-May-05 13:15 
GeneralRe: exception not catching Pin
Rob Tomson23-May-05 18:44
Rob Tomson23-May-05 18:44 
GeneralRe: exception not catching Pin
mav.northwind23-May-05 19:40
mav.northwind23-May-05 19:40 
GeneralRe: exception not catching Pin
Rob Tomson23-May-05 20:22
Rob Tomson23-May-05 20:22 
GeneralWindows Media Player component Pin
methodincharge23-May-05 9:39
methodincharge23-May-05 9:39 
GeneralRe: Windows Media Player component Pin
Christian Graus23-May-05 12:01
protectorChristian Graus23-May-05 12:01 
GeneralRe: Windows Media Player component Pin
methodincharge23-May-05 13:19
methodincharge23-May-05 13:19 
Generalcontroling the event handler Pin
Gil.Schmidt23-May-05 9:02
Gil.Schmidt23-May-05 9:02 
GeneralDataTable.GetChanges return null Pin
Alomgir Miah23-May-05 8:55
Alomgir Miah23-May-05 8:55 
GeneralActive Directory question Pin
joe_coolish23-May-05 5:48
joe_coolish23-May-05 5:48 
Generalset actions on [un]install project Pin
Sasuko23-May-05 5:47
Sasuko23-May-05 5:47 
GeneralXML node selection Pin
Member 178430323-May-05 5:46
Member 178430323-May-05 5:46 
GeneralRe: XML node selection Pin
Alomgir Miah23-May-05 8:54
Alomgir Miah23-May-05 8:54 

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.