Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRolf Bjarne Kvinge <rolf@xamarin.com>2015-10-06 14:44:03 +0300
committerRolf Bjarne Kvinge <rolf@xamarin.com>2015-11-18 15:37:30 +0300
commit7f4c6459e3f914a8cabadd646f1fb7cca2e875f7 (patch)
tree2a0b8a5f52df54565a72be2d46605fe0e0956f2f /mcs/class/System/System.Diagnostics
parentdc00526d138777e652e560224568bd4b5fbed1e6 (diff)
[System] Exclude code that tries to load System.Windows.Forms.dll dynamically on mobile.
It won't succeed anyway.
Diffstat (limited to 'mcs/class/System/System.Diagnostics')
-rw-r--r--mcs/class/System/System.Diagnostics/DefaultTraceListener.cs4
1 files changed, 4 insertions, 0 deletions
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);