[Mono-bugs] [Bug 341105] New: SL 1.1 swallow exceptions in Loaded event

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Nov 12 14:00:49 EST 2007


https://bugzilla.novell.com/show_bug.cgi?id=341105

           Summary: SL 1.1 swallow exceptions in Loaded event
           Product: Moonlight
           Version: 1_0
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: engine
        AssignedTo: mono-bugs at ximian.com
        ReportedBy: spouliot at novell.com
         QAContact: mono-bugs at ximian.com
          Found By: ---


If an exception is thrown in the (managed) Loaded event Silverlight won't
report it to the end user. This might be true for other events too (needs more
tests).

In the test case Moonlight shows the exception details and stacktrace before
the Ellipse. Silverlight only shows the ellipse.

XAML
----
<Canvas x:Name="parentCanvas"
        xmlns="http://schemas.microsoft.com/client/2007" 
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
        Loaded="Page_Loaded" 
        x:Class="test.Page;assembly=ClientBin/test.dll"
        Width="640"
        Height="480"
        Background="White"
        >
  <Ellipse x:Name="ellipse"
      Height="20" Width="20" Canvas.Left="30" Canvas.Top="30"
      Fill="Black"/>
</Canvas>


C#
--
    public partial class Page : Canvas
    {
        public void Page_Loaded(object o, EventArgs e)
        {
            // Required to initialize variables
            InitializeComponent();
            throw new NotImplementedException();
        }
    }


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list