[Mono-bugs] [Bug 422491] Remoting: Passing ObjRef from Windows to Mono throws " Object type System.Int64 cannot be converted to target type: System.Int32"
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Sep 4 21:08:50 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=422491
User steffen.enni at gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=422491#c2
Steffen Enni <steffen.enni at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |NEW
Info Provider|steffen.enni at gmail.com |
--- Comment #2 from Steffen Enni <steffen.enni at gmail.com> 2008-09-04 19:08:49 MDT ---
Just retested using the supplied test case and the error is still there when I
use revision 112336 of the svn repository. (Server on Mono, Client on windows)
Did a little investigation as well and the error seems to come from the class
System.Runtime.Remoting.Channels.CrossAppDomainData where the _ContextID field
is of type System.Object in mscorlib, Version=2.0.0.0 and in Mono the same
field is declared as an int (with the comment: Never used but possible
required for .NET compatibility).
When I change field to an Object, the error is gone and the client is able to
pass an object reference to the server from windows to mono.
mono at mono-desktop:~/projects/mcs/class/corlib/System.Runtime.Remoting.Channels$
svn diff CrossAppDomainChannel.cs
Index: CrossAppDomainChannel.cs
===================================================================
--- CrossAppDomainChannel.cs (revision 112336)
+++ CrossAppDomainChannel.cs (working copy)
@@ -51,7 +51,7 @@
#pragma warning disable 169
// TODO: Add context support
// Never used but possible required for .NET compatibility
- private int _ContextID;
+ private Object _ContextID;
#pragma warning restore 169
private int _DomainID;
--
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