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


           Summary: Setting a DataSet as BindingSource for a DataGridView
                    crashes the Application
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.4.x
          Platform: x86
        OS/Version: openSUSE 11.1
            Status: NEW
          Keywords: Code_Error
          Severity: Major
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          Found By: Development


Created an attachment (id=316445)
 --> (http://bugzilla.novell.com/attachment.cgi?id=316445)
Zip-File with the complete project environment to reproduce the error

Description of Problem:


Steps to reproduce the problem:
1. Read an XML-File into a DataSet 
2. Set this as DataSource for a DataGridView


Actual Results:
Unhandled Exception: System.NullReferenceException: Object reference not set to
an instance of an object
  at System.Windows.Forms.ListBindingHelper.GetListItemType (System.Object
dataSource, System.String dataMember) [0x00000] 
  at System.Windows.Forms.ListBindingHelper.GetListItemType (System.Object
list) [0x00000] 
  at System.Windows.Forms.BindingSource.SetList (IList l) [0x00000] 
  at System.Windows.Forms.BindingSource.ResetList () [0x00000] 
  at System.Windows.Forms.BindingSource.set_DataSource (System.Object value)
[0x00000] 
  at (wrapper remoting-invoke-with-check)
System.Windows.Forms.BindingSource:set_DataSource (object)
  at dgview2.Form1..ctor () [0x00000] 
  at (wrapper remoting-invoke-with-check) dgview2.Form1:.ctor ()
  at dgview2.Program.Main () [0x00000] 


Expected Results:
Normal startup of the application

How often does this happen? 
Always


Additional Information:
See the attached (simplified) example.

-- 
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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to