[Mono-bugs] [Bug 520437] [PATCH] using == operator when comparing too difference refs to the same native COM object returns false .NET difference
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sat Jul 11 16:41:56 EDT 2009
http://bugzilla.novell.com/show_bug.cgi?id=520437
User robertj at gmx.net added comment
http://bugzilla.novell.com/show_bug.cgi?id=520437#c8
--- Comment #8 from Robert Jordan <robertj at gmx.net> 2009-07-11 14:41:48 MDT ---
Related to the first issue, the following sample is failing on MS.NET with:
Unhandled Exception: System.InvalidCastException: Unable to cast object of type
'LgWritingSystemFactory' to type 'LgWritingSystemFactory2'.
at Test.Main()
So it seems that we cannot alias 2 ComImport classes:
using System;
using System.Runtime.InteropServices;
[ComImport]
[ClassInterface(ClassInterfaceType.None)]
[TypeLibType(TypeLibTypeFlags.FCanCreate)]
[Guid("D96B7867-EDE6-4c0d-80C6-B929300985A6")] // <-- same GUID
internal class LgWritingSystemFactory
{
}
[ComImport]
[ClassInterface(ClassInterfaceType.None)]
[TypeLibType(TypeLibTypeFlags.FCanCreate)]
[Guid("D96B7867-EDE6-4c0d-80C6-B929300985A6")] // <-- same GUID
internal class LgWritingSystemFactory2
{
}
class Test
{
static void Main()
{
new LgWritingSystemFactory();
new LgWritingSystemFactory2();
}
}
--
Configure bugmail: http://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