[Mono-bugs] [Bug 536310] New: Setting a DataSet as BindingSource for a DataGridView crashes the Application
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Sep 2 11:52:04 EDT 2009
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: mono-bugs at lists.ximian.com
ReportedBy: koehler at idas.de
QAContact: mono-bugs at lists.ximian.com
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.
More information about the mono-bugs
mailing list