[Mono-bugs] [Bug 410710] CallByName infinte loop

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Jul 21 16:06:25 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=410710

User andyhume32 at yahoo.co.uk added comment
https://bugzilla.novell.com/show_bug.cgi?id=410710#c4





--- Comment #4 from Andy Hume <andyhume32 at yahoo.co.uk>  2008-07-21 14:06:24 MDT ---
This case fails at the Get with the exception below.
[[
    <Test()> _
    Public Sub CallByName_All_OnMemoryStream()
        Dim strm As New System.IO.MemoryStream
        ' SET
        CallByName(strm, "Position", CallType.Set, 3)
        Assert.AreEqual(3, strm.Position, "#2")
        ' METHOD
        Dim data() As Byte = {1, 2, 3, 4, 5}
        Dim params() As Object = {data, 0, data.Length}
        CallByName(strm, "Write", CallType.Method, params)
        Assert.AreEqual(8, strm.Position, "#3")
        ' GET
        Assert.AreEqual(8, CallByName(strm, "Position", CallType.Get, Nothing),
"#1")
    End Sub
]]

[[
74) InteractionTests.CallByName_All_OnMemoryStream :
System.NullReferenceException : Object reference not set to an instance of an
object
  at Microsoft.VisualBasic.CompilerServices.LateBinder.BindToMethod
(BindingFlags bindingAttr, System.Reflection.MethodBase[] match,
System.Object[]& args, System.Reflection.ParameterModifier[] modifiers,
System.Globalization.CultureInfo culture, System.String[] names, System.Object&
state) [0x00000] 
  at System.MonoType.InvokeMember (System.String name, BindingFlags invokeAttr,
System.Reflection.Binder binder, System.Object target, System.Object[] args,
System.Reflection.ParameterModifier[] modifiers,
System.Globalization.CultureInfo culture, System.String[] namedParameters)
[0x00230] in D:\cygwin\usr\src\mono\mcs\class\corlib\System\MonoType.cs:382 
  at Microsoft.VisualBasic.CompilerServices.LateBinding.LateGet (System.Object
o, System.Type objType, System.String name, System.Object[] args,
System.String[] paramnames, System.Boolean[] CopyBack) [0x00000] 
  at Microsoft.VisualBasic.Interaction.CallByName (System.Object ObjectRef,
System.String ProcName, CallType UseCallType, System.Object[] Args) [0x00000] 
  at Microsoft.VisualBasic.CompilerServices.Versioned.CallByName (System.Object
Instance, System.String MethodName, CallType UseCallType, System.Object[]
Arguments) [0x00000] 
  at InteractionTests.CallByName_All_OnMemoryStream () [0x00000] 
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke
(object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags
invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
System.Globalization.CultureInfo culture) [0x00057] in
D:\cygwin\usr\src\mono\mcs\class\corlib\System.Reflection\MonoMethod.cs:157 
]]


-- 
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