[Mono-bugs] [Bug 425512] System.Exception field name remote_stack_trace is _remoteStackTraceString on MS .Net

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Feb 12 17:06:22 EST 2009


User miguel at novell.com added comment

Miguel de Icaza <miguel at novell.com> changed:

           What    |Removed                     |Added
                 CC|                            |miguel at novell.com

--- Comment #6 from Miguel de Icaza <miguel at novell.com>  2009-02-12 15:06:21 MST ---
Robert, would you mind commiting this change?

I think it is OK to break the apps (if any) that depended on this ugly hack.

As for detection, probably the code should be a variation from comment #2:

FieldInfo remoteStackTraceString =
  BindingFlags.Instance | BindingFlags.NonPublic); // MS.Net

 if (remoteStackTraceString == null)
  remoteStackTraceString = typeof(Exception).GetField("remote_stack_trace",
   BindingFlags.Instance | BindingFlags.NonPublic); // Mono pre-2.6

Basically try the first, then fallback to the setting we had in Mono pre-2.6


Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list