Click here to Skip to main content
15,892,809 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralExtensive API Library Pin
Poolbeer27-Feb-03 3:18
Poolbeer27-Feb-03 3:18 
GeneralRe: Extensive API Library Pin
leppie27-Feb-03 9:43
leppie27-Feb-03 9:43 
GeneralRe: Extensive API Library Pin
Poolbeer27-Feb-03 21:46
Poolbeer27-Feb-03 21:46 
GeneralIf 2 people are working on the exact same project, how do we get each others new parts of the project... Pin
IrishSonic26-Feb-03 9:41
IrishSonic26-Feb-03 9:41 
GeneralRe: If 2 people are working on the exact same project, how do we get each others new parts of the project... Pin
Ray Cassick26-Feb-03 9:47
Ray Cassick26-Feb-03 9:47 
GeneralRe: If 2 people are working on the exact same project, how do we get each others new parts of the project... Pin
leppie26-Feb-03 11:25
leppie26-Feb-03 11:25 
Questionexception handling broken is vs2k3 final beta? Pin
Domster26-Feb-03 1:34
Domster26-Feb-03 1:34 
AnswerRe: exception handling broken is vs2k3 final beta? Pin
Richard Deeming27-Feb-03 6:45
mveRichard Deeming27-Feb-03 6:45 
I don't think this has ever worked - I see exactly the same thing in v1 of the framework, using the command-line compiler. Even if you add a handler to the AppDomain.UnhandledException event, you can't prevent the default unhandled exception dialog box from being shown. Frown | :(
using System;
using System.ComponentModel;
using System.Windows.Forms;
 
namespace App
{
    public class Form1 : System.Windows.Forms.Form
    {
        public Form1()
        {
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
            this.ClientSize = new System.Drawing.Size(290, 260);
            this.Name = "Form1";
            this.Text = "Form1";
            this.Click += new System.EventHandler(this.Form1_Click);
        }
 
        private void Form1_Click(object sender, System.EventArgs e)
        {
            object i = null;
            i.ToString();
        }
 
        [STAThread]
        static void Main() 
        {
            try
            {
                AppDomain.CurrentDomain.UnhandledException += 
                    new UnhandledExceptionEventHandler(UnhandledException);
 
                Application.Run(new Form1());
            }
            catch
            {
                MessageBox.Show("caught");
            }
        }
 
        private static void UnhandledException(
            object sender, UnhandledExceptionEventArgs e)
        {
            try
            {
                Exception ex = e.ExceptionObject as Exception;
                if (null == ex)
                    MessageBox.Show("Unhandled exception");
                else
                    MessageBox.Show(ex.Message);
            }
            catch
            {
                Console.WriteLine("ERROR");
            }
        }
    }
}
The only workaround seems to be to wrap all of your event handlers for windows forms controls in try { ... } catch {} blocks.


"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
GeneralRe: exception handling broken is vs2k3 final beta? Pin
Domster27-Feb-03 6:54
Domster27-Feb-03 6:54 
GeneralInteroperability of Remoting Pin
mafia14425-Feb-03 18:17
mafia14425-Feb-03 18:17 
GeneralDraw3dRect Equivelent Pin
Jamie Nordmeyer25-Feb-03 7:26
Jamie Nordmeyer25-Feb-03 7:26 
GeneralRe: Draw3dRect Equivelent Pin
Gumaro26-Feb-03 8:05
Gumaro26-Feb-03 8:05 
GeneralRe: Draw3dRect Equivelent Pin
Brian Olej28-Feb-03 17:54
Brian Olej28-Feb-03 17:54 
GeneralAdding to "Add Reference" Pin
Chris Coote25-Feb-03 7:16
Chris Coote25-Feb-03 7:16 
GeneralRe: Adding to "Add Reference" Pin
Jeff J25-Feb-03 21:11
Jeff J25-Feb-03 21:11 
GeneralRe: Adding to "Add Reference" Pin
leppie26-Feb-03 6:46
leppie26-Feb-03 6:46 
GeneralRe: Adding to "Add Reference" Pin
Chris Coote26-Feb-03 8:33
Chris Coote26-Feb-03 8:33 
GeneralRe: Adding to "Add Reference" Pin
Chris Coote26-Feb-03 8:44
Chris Coote26-Feb-03 8:44 
GeneralReferences Pin
Ranjan Banerji24-Feb-03 12:52
Ranjan Banerji24-Feb-03 12:52 
GeneralRe: References Pin
Ranjan Banerji24-Feb-03 13:08
Ranjan Banerji24-Feb-03 13:08 
GeneralRe: References Pin
Ranjan Banerji24-Feb-03 13:39
Ranjan Banerji24-Feb-03 13:39 
GeneralRe: References Pin
leppie25-Feb-03 6:32
leppie25-Feb-03 6:32 
GeneralCrystal Reports Pin
armencho24-Feb-03 7:13
armencho24-Feb-03 7:13 
GeneralVisual Studio.NET running slow... Pin
IrishSonic24-Feb-03 2:48
IrishSonic24-Feb-03 2:48 
GeneralRe: Visual Studio.NET running slow... Pin
Jeff J25-Feb-03 21:05
Jeff J25-Feb-03 21:05 

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.