https://bugzilla.novell.com/show_bug.cgi?id=645217
https://bugzilla.novell.com/show_bug.cgi?id=645217#c0 Summary: ObjectMirror vs ThreadStaticAttribute Classification: Mono Product: Mono: Debugger Version: 2.8.x Platform: Macintosh OS/Version: Mac OS X 10.6 Status: NEW Severity: Normal Priority: P5 - None Component: backend AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.13) Gecko/20100914 Firefox/3.5.13 I have code that attempts to walk active objects so that I can dump out the objects keeping a selected object or type around. Unfortunately the soft debugger throws when I try to call ObjectMirror.GetValue for a field decorated with ThreadStaticAttribute. The code in question looks like: private void DoWalkObject(ObjectMirror value, Trace parent) { if (!value.IsCollected && !m_objects.Contains(value.Address)) { m_objects.Add(value.Address); foreach (FieldInfoMirror field in value.Type.GetAllFields()) { if (!field.IsStatic && DoShouldWalkType(field.FieldType)) { Value v = value.GetValue(field); var child = new Trace(field.Name, field.FieldType.FullName, v); DoWalkValue(v, child, field.Name); parent.Children.Add(child); } } } } Reproducible: Always -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
