[Mono-bugs] [Bug 463418] New: Cannot find class member when grabbed from listbox

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Jan 3 19:20:02 EST 2009


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


           Summary: Cannot find class member when grabbed from listbox
           Product: Mono: Runtime
           Version: 2.0.x
          Platform: i586
        OS/Version: openSUSE 11.1
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: misc
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: kurvaanyad2 at citromail.hu
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Created an attachment (id=263088)
 --> (https://bugzilla.novell.com/attachment.cgi?id=263088)
VB2005 project sources and win32 binary

The attached code is a VB2005 project. It's not as stripped as possible, but I
believe I have managed to pinpoint the exact location of the problem.

In the Ops/RawOperations.vb, at line 162, a listbox item is stored in a
variable with a correct type. In the next line, the member descriptor is
successfully accessed. Later in line 167, it's also used successfully. Howevery
in line 169, when the same object is being used but from the listbox, without
typecast, the program exits with the following exception:


Unhandled Exception: System.MissingMemberException: Cannot find the requested
class member.
  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)
[0x00000] 
  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.CompilerServices.NewLateBinding.LateGet
(System.Object Instance, System.Type Type, System.String MemberName,
System.Object[] Arguments, System.String[] ArgumentNames, System.Type[]
TypeArguments, System.Boolean[] CopyBack) [0x00000] 
  at CreatorErrored.frmMain.ShowRawParagraph
(CreatorErrored.ParagraphRepresenter pr) [0x00000]

With the MS framework it makes no fuss because of it.

Attachment also contains a compiled file in bin/Release. To experience the bug,
start the program, then push ctrl+N (or File menu/New), push the just appeared
"Add language module", then push the just enabled "Add section" button. The
crash should happen after a messagebox displays a "2".


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