[Mono-bugs] [Bug 645217] New: ObjectMirror vs ThreadStaticAttribute

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Oct 9 21:49:32 EDT 2010



           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: martin at novell.com
        ReportedBy: jesjones at mindspring.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US;
rv: 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))
        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);

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.

More information about the mono-bugs mailing list