[Mono-bugs] [Bug 656154] New: Subclassed NSApplications now blow up with a an invalid cast when the window appears
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Fri Nov 26 18:48:07 EST 2010
https://bugzilla.novell.com/show_bug.cgi?id=656154
https://bugzilla.novell.com/show_bug.cgi?id=656154#c0
Summary: Subclassed NSApplications now blow up with a an
invalid cast when the window appears
Classification: Mono
Product: MonoMac
Version: GIT
Platform: Other
OS/Version: Other
Status: NEW
Severity: Critical
Priority: P5 - None
Component: Bindings
AssignedTo: gnorton at novell.com
ReportedBy: jclancey at resdat.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
Created an attachment (id=402340)
--> (http://bugzilla.novell.com/attachment.cgi?id=402340)
Test Case
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_5; en-US)
AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.44 Safari/534.7
Recent changes to MonoMac has caused some issues with Subclassing the
NSApplication. I now get the following error.
Cannot cast from source type to destination type.
at (wrapper dynamic-method) object.[System.Windows.Forms.Form.Boolean
RespondsToSelector(MonoMac.ObjCRuntime.Selector)]
(MonoMac.Foundation.NSObject,MonoMac.ObjCRuntime.Selector,MonoMac.ObjCRuntime.Selector)
<IL 0x00001, 0x00036>
at (wrapper native-to-managed) object.[System.Windows.Forms.Form.Boolean
RespondsToSelector(MonoMac.ObjCRuntime.Selector)]
(MonoMac.Foundation.NSObject,MonoMac.ObjCRuntime.Selector,MonoMac.ObjCRuntime.Selector)
<IL 0x0006d, 0x001df>
at (wrapper managed-to-native) MonoMac.AppKit.NSApplication.NSApplicationMain
(int,string[]) <0x00003>
at MonoMac.AppKit.NSApplication.Main (string[]) [0x00000] in
/Users/Clancey/Projects/monomacTrunk/src/AppKit/NSApplication.cs:74
at System.Windows.Forms.Application.Run
(System.Windows.Forms.ApplicationContext,string[]) [0x0000a] in
/Users/Clancey/Projects/testmm 2/testmm/Application.cs:24
at System.Windows.Forms.Application.Run
(System.Func`1<System.Windows.Forms.Form>,string[]) [0x0000b] in
/Users/Clancey/Projects/testmm 2/testmm/Application.cs:17
at testmm.MainClass.Main (string[]) [0x00000] in /Users/Clancey/Projects/testmm
2/testmm/Main.cs:18
Reproducible: Always
Steps to Reproduce:
1. Run the included test case.
2. When the window comes to focus or you click on the window it blows up.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list