From 7f4c6459e3f914a8cabadd646f1fb7cca2e875f7 Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Tue, 6 Oct 2015 13:44:03 +0200 Subject: [PATCH] [System] Exclude code that tries to load System.Windows.Forms.dll dynamically on mobile. It won't succeed anyway. --- mcs/class/System/System.Diagnostics/DefaultTraceListener.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mcs/class/System/System.Diagnostics/DefaultTraceListener.cs b/mcs/class/System/System.Diagnostics/DefaultTraceListener.cs index 9750c53b34a..2bf4cab23c6 100644 --- a/mcs/class/System/System.Diagnostics/DefaultTraceListener.cs +++ b/mcs/class/System/System.Diagnostics/DefaultTraceListener.cs @@ -160,11 +160,14 @@ namespace System.Diagnostics { public override void Fail (string message, string detailMessage) { base.Fail (message, detailMessage); +#if !MOBILE if (ProcessUI (message, detailMessage) == DialogResult.Abort) Thread.CurrentThread.Abort (); +#endif WriteLine (new StackTrace().ToString()); } +#if !MOBILE DialogResult ProcessUI (string message, string detailMessage) { @@ -210,6 +213,7 @@ namespace System.Diagnostics { Ignore, Abort } +#endif [MethodImplAttribute(MethodImplOptions.InternalCall)] private extern static void WriteWindowsDebugString (string message); -- 2.25.1