[Mono-bugs] [Bug 682935] New: ISupportInitialize not implemented on System.Windows.Forms.SplitContainer
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Mar 28 00:36:54 EDT 2011
https://bugzilla.novell.com/show_bug.cgi?id=682935
https://bugzilla.novell.com/show_bug.cgi?id=682935#c0
Summary: ISupportInitialize not implemented on
System.Windows.Forms.SplitContainer
Classification: Mono
Product: Mono: Runtime
Version: 2.8.x
Platform: All
OS/Version: All
Status: NEW
Severity: Critical
Priority: P5 - None
Component: interop
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: eddyh at microsoft.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-us)
AppleWebKit/533.19.4 (KHTML, like Gecko) Version/5.0.3 Safari/533.19.4
In .Net 4.0 Microsoft implemented ISupportInitialize on SplitContainer. So, if
you get an assembly that has a Form that was created with VS2010 it will add
code that would cast the control to this interface end will crash. If you
remove the code from the xxx.Designer.cs than the crash will go away. By the
way people have the same problem when move code from VS2010 to VS2008 with just
coping the generated designer code.
The fix for this bug would be to implement the interface and just leave the
stub there (empty functions).
It would provide a better inter-operability with assembles from windows.
Caused by:
((System.ComponentModel.ISupportInitialize)(this.ctrlSplit)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.ctrlSplit)).EndInit();
Reproducible: Always
Steps to Reproduce:
1. Get an assembly with WinForm and a split container generated code for the UI
with VS2010
2. Copy the form's source files generated with VS2010.. It will compile but
fail exectuting
Actual Results:
Crash interface not implemented but casted by designer code.
((System.ComponentModel.ISupportInitialize)(this.ctrlSplit)).BeginInit();
Expected Results:
Not crash because the interface is not implemented
--
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