Home All Groups Group Topic Archive Search About

Exception from dialog not catched on Windows x64 box?

Author
19 Dec 2005 11:47 AM
oleksa borodie
Hello.

I've installed VS 2003 on my Windows XP x64 box. And catched the
problem: if exception is thrown from some window ShowDialog it is not
catched by catch followed by ShowDialog.

Somewhere in the VisibleChanged dialog form handler exception is
thrown.

private void Dialog_VisibleChanged(object sender, System.EventArgs e)
{
    if (Visible == false)
        throw new ApplicationException("test exception from dialog");
}

On Windows XP x32 box it is catched after dialog is displayed.

try
{
    using (Dialog d = new Dialog())
    {
        d.ShowDialog();
    }
}
catch(Exception ex)
{
    MessageBox.Show(string.Format("exception catched\r\n{0}",
ex.Message));
}


When code is build on Windows XP x64 exception is not catched :( How it
could be possible?

Compleete test could be downloaded from
<http://spot9969.multiply.com/video/item/1> (11KB, VS 2003)

AddThis Social Bookmark Button