Click here to Skip to main content
15,899,026 members
Home / Discussions / C#
   

C#

 
Questionhelp please, set focus to control Pin
CandyMe22-Oct-05 16:14
CandyMe22-Oct-05 16:14 
AnswerRe: help please, set focus to control Pin
MoustafaS22-Oct-05 16:44
MoustafaS22-Oct-05 16:44 
GeneralRe: help please, set focus to control Pin
CandyMe23-Oct-05 15:33
CandyMe23-Oct-05 15:33 
AnswerRe: help please, set focus to control Pin
MoustafaS23-Oct-05 16:05
MoustafaS23-Oct-05 16:05 
GeneralRe: help please, set focus to control Pin
Anonymous23-Oct-05 16:09
Anonymous23-Oct-05 16:09 
QuestionImage Display Pin
MKlucher22-Oct-05 15:07
MKlucher22-Oct-05 15:07 
AnswerRe: Image Display Pin
MoustafaS22-Oct-05 15:35
MoustafaS22-Oct-05 15:35 
QuestionRelease versus Debug exception catching? Pin
theFrenchHornet22-Oct-05 14:11
theFrenchHornet22-Oct-05 14:11 
Is there a known problem with the release version of the C# .NET 2003 compiler as regards exception catching? Can someone point me to where Microsoft lists all known bugs? I have been searching and haven't turned it up. I found a page which listed bugs fixed in a particular release, but haven't found anything about this.

I am trying, at the top level of an application, to catch any errors which have bubbled up from below. I have a try/catch around the Application.Run that brings up the main form of an application. This is in one project. The form is in a different project.

If I build in debug mode and an error occurs on the form, the error is caught by my application. If I build in release mode, the error is not caught by may application - a message box comes up showing the error was caught by the system.

I created a sample solution to simplify the environment and the problem still occurs.

My concern is not with the particular error which is getting by my catch, but with the fact that any error is. Is there something inherently wrong with the way I am doing it, and it just happens to work in Debug configuration, or is there a problem with the release compiler?
Here is the code I used to demonstrate the problem:

From the project 'starter':

<code>
using System;
using System.Windows.Forms;
using FormPart;

namespace starter
{
  public class starter
  {
    [STAThread]
    static void Main() 
    {
      try
      {
        Application.Run(new FormFormPart());
      }
      catch (Exception e)
      {
        MessageBox.Show("Exception Caught", "starter Message");
      }
    }
  }
}
</code>
From the project FormPart in the namespace FormPart which has a populated DataGrid object:
<code>
private void button1_Click(object sender, System.EventArgs e)
{
  dataView2.RowFilter = "Distance Like 'a'";
}
</code>


The error occurs because Distance is defined as a System.Double column. Again, I'm not concerned about fixing this particular error - just about how any error is getting by the catch at the top level.

Thanks for any thoughts ...
AnswerRe: Release versus Debug exception catching? Pin
Stefan Troschuetz22-Oct-05 22:12
Stefan Troschuetz22-Oct-05 22:12 
AnswerRe: Release versus Debug exception catching? Pin
mav.northwind22-Oct-05 23:32
mav.northwind22-Oct-05 23:32 
GeneralRe: Release versus Debug exception catching? Pin
Daniel Grunwald23-Oct-05 2:34
Daniel Grunwald23-Oct-05 2:34 
AnswerRe: Release versus Debug exception catching? Pin
theFrenchHornet23-Oct-05 5:56
theFrenchHornet23-Oct-05 5:56 
QuestionNetworking Problem.Please Help!!! Pin
snouto22-Oct-05 14:00
snouto22-Oct-05 14:00 
Question#using a C# dll Pin
Joel Holdsworth22-Oct-05 12:00
Joel Holdsworth22-Oct-05 12:00 
AnswerRe: #using a C# dll Pin
André Ziegler22-Oct-05 12:09
André Ziegler22-Oct-05 12:09 
AnswerRe: #using a C# dll Pin
leppie22-Oct-05 12:33
leppie22-Oct-05 12:33 
QuestionRe: #using a C# dll Pin
Joel Holdsworth22-Oct-05 12:40
Joel Holdsworth22-Oct-05 12:40 
AnswerRe: #using a C# dll Pin
leppie22-Oct-05 22:15
leppie22-Oct-05 22:15 
AnswerRe: #using a C# dll Pin
Guffa22-Oct-05 19:02
Guffa22-Oct-05 19:02 
GeneralRe: #using a C# dll Pin
Joel Holdsworth22-Oct-05 22:54
Joel Holdsworth22-Oct-05 22:54 
GeneralRe: #using a C# dll Pin
Rob Graham23-Oct-05 5:52
Rob Graham23-Oct-05 5:52 
Questioncheckedlistbox and numericupdown Pin
Mridang Agarwalla22-Oct-05 10:32
Mridang Agarwalla22-Oct-05 10:32 
Questionduplicates in array Pin
Mridang Agarwalla22-Oct-05 10:14
Mridang Agarwalla22-Oct-05 10:14 
AnswerRe: duplicates in array Pin
turbochimp22-Oct-05 10:38
turbochimp22-Oct-05 10:38 
AnswerRe: duplicates in array Pin
Matt Gerrans22-Oct-05 19:57
Matt Gerrans22-Oct-05 19:57 

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.