FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fixed errors breaking .NET Remoting on method invoke (#276) · pythonnet/pythonnet@2bbe5b1 · GitHub

Repository navigation

Commit 2bbe5b1

Browse files
committed
Fixed errors breaking .NET Remoting on method invoke (#276)
1 parent 46d56af commit 2bbe5b1

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎src/runtime/converter.cs‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,11 @@ internal static IntPtr ToPython(object value, Type type)
155155
var pyderived = value as IPythonDerivedType;
156156
if (null != pyderived)
157157
{
158-
return ClassDerivedObject.ToPython(pyderived);
158+
// if object is remote don't do this
159+
if (!System.Runtime.Remoting.RemotingServices.IsTransparentProxy(pyderived))
160+
{
161+
return ClassDerivedObject.ToPython(pyderived);
162+
}
159163
}
160164

161165
// hmm - from Python, we almost never care what the declared

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL