Author: mprobst
Date: 2007-08-28 05:42:00 -0400 (Tue, 28 Aug 2007)
New Revision: 84932
Modified:
trunk/mcs/class/corlib/System.Security/ChangeLog
trunk/mcs/class/corlib/System.Security/SecurityManager.cs
Log:
2007-08-28 Mark Probst <[EMAIL PROTECTED]>
* SecurityManager.cs: Changed method argument of
LinkDemandSecurityException to IntPtr and removed the assembly
argument (which can be gotten to via the method), to avoid having
to embed reference object values in the native code.
Modified: trunk/mcs/class/corlib/System.Security/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Security/ChangeLog 2007-08-28 09:34:30 UTC
(rev 84931)
+++ trunk/mcs/class/corlib/System.Security/ChangeLog 2007-08-28 09:42:00 UTC
(rev 84932)
@@ -1,3 +1,10 @@
+2007-08-28 Mark Probst <[EMAIL PROTECTED]>
+
+ * SecurityManager.cs: Changed method argument of
+ LinkDemandSecurityException to IntPtr and removed the assembly
+ argument (which can be gotten to via the method), to avoid having
+ to embed reference object values in the native code.
+
2007-08-20 Mark Probst <[EMAIL PROTECTED]>
* SecurityManager.cs: Changed arguments of MethodAccessException
Modified: trunk/mcs/class/corlib/System.Security/SecurityManager.cs
===================================================================
--- trunk/mcs/class/corlib/System.Security/SecurityManager.cs 2007-08-28
09:34:30 UTC (rev 84931)
+++ trunk/mcs/class/corlib/System.Security/SecurityManager.cs 2007-08-28
09:42:00 UTC (rev 84932)
@@ -668,8 +668,12 @@
}
// we try to provide as much details as possible to help
debugging
- private static void LinkDemandSecurityException (int
securityViolation, Assembly a, MethodInfo method)
+ private static void LinkDemandSecurityException (int
securityViolation, IntPtr methodHandle)
{
+ RuntimeMethodHandle runtimeHandle = new
RuntimeMethodHandle (methodHandle);
+ MethodInfo method =
(MethodInfo)(MethodBase.GetMethodFromHandle (runtimeHandle));
+ Assembly a = method.DeclaringType.Assembly;
+
string message = null;
AssemblyName an = null;
PermissionSet granted = null;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches