[Mono-bugs] [Bug 552912] New: Cannot access memory at address 0x4c from MakeByRefType

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Nov 5 11:35:51 EST 2009


http://bugzilla.novell.com/show_bug.cgi?id=552912


           Summary: Cannot access memory at address 0x4c from
                    MakeByRefType
    Classification: Mono
           Product: Mono: Runtime
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: misc
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: msafar at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Compile & Run

using System;

using System.Reflection;

using System.Collections.Generic;







class DynamicType : Type

{

    public override Assembly Assembly {

        get { return UnderlyingSystemType.Assembly; }

    }



    public override string AssemblyQualifiedName {

        get { throw new NotImplementedException (); }

    }



    public override Type BaseType {

        get { return null; }

    }



    public override string FullName {

        get { return UnderlyingSystemType.FullName; }

    }



    public override Guid GUID {

        get { throw new NotImplementedException (); }

    }



    protected override TypeAttributes GetAttributeFlagsImpl ()

    {

        return UnderlyingSystemType.Attributes;

    }



    protected override ConstructorInfo GetConstructorImpl (BindingFlags

bindingAttr, Binder binder, CallingConventions callConvention, Type[] types,

ParameterModifier[] modifiers)

    {

        throw new NotImplementedException ();

    }



    public override ConstructorInfo[] GetConstructors (BindingFlags

bindingAttr)

    {

        throw new NotImplementedException ();

    }



    public override Type GetElementType ()

    {

        throw new NotImplementedException ();

    }



    public override EventInfo GetEvent (string name, BindingFlags

bindingAttr)

    {

        throw new NotImplementedException ();

    }



    public override EventInfo[] GetEvents (BindingFlags bindingAttr)

    {

        throw new NotImplementedException ();

    }



    public override FieldInfo GetField (string name, BindingFlags

bindingAttr)

    {

        throw new NotImplementedException ();

    }



    public override FieldInfo[] GetFields (BindingFlags bindingAttr)

    {

        throw new NotImplementedException ();

    }



    public override Type GetInterface (string name, bool ignoreCase)

    {

        throw new NotImplementedException ();

    }



    public override Type[] GetInterfaces ()

    {

        return Type.EmptyTypes;

    }



    public override MemberInfo[] GetMembers (BindingFlags bindingAttr)

    {

        throw new NotImplementedException ();

    }



    protected override MethodInfo GetMethodImpl (string name, BindingFlags

bindingAttr, Binder binder, CallingConventions callConvention, Type[] types,

ParameterModifier[] modifiers)

    {

        throw new NotImplementedException ();

    }



    public override MethodInfo[] GetMethods (BindingFlags bindingAttr)

    {

        throw new NotImplementedException ();

    }



    public override Type GetNestedType (string name, BindingFlags

bindingAttr)

    {

        throw new NotImplementedException ();

    }



    public override Type[] GetNestedTypes (BindingFlags bindingAttr)

    {

        throw new NotImplementedException ();

    }



    public override PropertyInfo[] GetProperties (BindingFlags bindingAttr)

    {

        throw new NotImplementedException ();

    }



    protected override PropertyInfo GetPropertyImpl (string name,

BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types,

ParameterModifier[] modifiers)

    {

        throw new NotImplementedException ();

    }



    protected override bool HasElementTypeImpl ()

    {

        throw new NotImplementedException ();

    }



    public override object InvokeMember (string name, BindingFlags

invokeAttr, Binder binder, object target, object[] args, ParameterModifier[]

modifiers, System.Globalization.CultureInfo culture, string[] namedParameters)

    {

        throw new NotImplementedException ();

    }



    protected override bool IsArrayImpl ()

    {

        return false;

    }



    protected override bool IsByRefImpl ()

    {

        return false;

    }



    protected override bool IsCOMObjectImpl ()

    {

        return false;

    }



    protected override bool IsPointerImpl ()

    {

        return false;

    }



    protected override bool IsPrimitiveImpl ()

    {

        return false;

    }



    public override Module Module {

        get { return UnderlyingSystemType.Module; }

    }



    public override string Namespace {

        get { throw new NotImplementedException (); }

    }



    public override Type UnderlyingSystemType {

        get { return typeof (object); }

    }



    public override object[] GetCustomAttributes (Type attributeType, bool

inherit)

    {

        return new object [0];

    }



    public override object[] GetCustomAttributes (bool inherit)

    {

        return new object [0];

    }



    public override bool IsDefined (Type attributeType, bool inherit)

    {

        throw new NotImplementedException ();

    }



    public override string Name {

        get { return UnderlyingSystemType.Name; }

    }



    public override string ToString ()

    {

        return UnderlyingSystemType.ToString ();

    }



    public override RuntimeTypeHandle TypeHandle {

        get { return UnderlyingSystemType.TypeHandle; }

    }

}





class C

{

    public static void Main ()

    {

        var t = new DynamicType();

        t.MakeByRefType ();

    }

}

-- 
Configure bugmail: http://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