[Mono-bugs] [Bug 403282] New: DataSet Binding causing NotImplementedException in System.Data. DataViewManager
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Jun 24 11:21:39 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=403282
Summary: DataSet Binding causing NotImplementedException in
System.Data.DataViewManager
Product: Mono: Class Libraries
Version: SVN
Platform: x86
OS/Version: Windows XP
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Sys.Data
AssignedTo: bnc-blr-team-mono at forge.provo.novell.com
ReportedBy: gcollic at gmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
I'm studying the advancement of Mono with WindowsForms 2.0, and a sample app
need some functionnality not implemented in System.Data.DataViewManager. The
sample app run correctly on ms.NET.
I tried to have a minimal test case.
I'm using Windows, Visual Studio and the mono 20080620 tarball on cygwin.
Steps to Reproduce: run source code below
Actual Results: NIEX : The application crashed.
Expected Results: a blank form
--------------------------------------------------------------
$ mono --version
Mono JIT compiler version 20080620 (tarball)
Copyright (C) 2002-2008 Novell, Inc and Contributors. www.mono-project.com
TLS: normal
GC: Included Boehm (with typed GC)
SIGSEGV: normal
Notification: Thread + polling
Architecture: x86
Disabled: none
--------------------------------------------------------------
$ mono --debug SandBoxWinform.exe
Unhandled Exception: System.NotImplementedException: The requested feature is
no
t implemented.
at System.Data.DataViewManager.System.Collections.IEnumerable.GetEnumerator
()
[0x00000] in
D:\cygwin\usr\src\mono-20080620\mcs\class\System.Data\System.Data\
DataViewManager.cs:343
at System.Windows.Forms.ListBindingHelper.GetListItemType (System.Object
dataS
ource, System.String dataMember) [0x00061] in
D:\cygwin\usr\src\mono-20080620\mc
s\class\Managed.Windows.Forms\System.Windows.Forms\ListBindingHelper.cs:99
at System.Windows.Forms.ListBindingHelper.GetListItemType (System.Object
list)
[0x00000] in
D:\cygwin\usr\src\mono-20080620\mcs\class\Managed.Windows.Forms\Sy
stem.Windows.Forms\ListBindingHelper.cs:78
at System.Windows.Forms.BindingSource.SetList (IList l) [0x00033] in
D:\cygwin
\usr\src\mono-20080620\mcs\class\Managed.Windows.Forms\System.Windows.Forms\Bind
ingSource.cs:184
at System.Windows.Forms.BindingSource.ResetList () [0x00141] in
D:\cygwin\usr\
src\mono-20080620\mcs\class\Managed.Windows.Forms\System.Windows.Forms\BindingSo
urce.cs:175
at System.Windows.Forms.BindingSource.set_DataSource (System.Object value)
[0x
00029] in
D:\cygwin\usr\src\mono-20080620\mcs\class\Managed.Windows.Forms\System
Windows.Forms\BindingSource.cs:323
at (wrapper remoting-invoke-with-check)
System.Windows.Forms.BindingSource:set
_DataSource (object)
at OrderForm.InitializeComponent () [0x00000]
at OrderForm..ctor () [0x00000]
at (wrapper remoting-invoke-with-check) OrderForm:.ctor ()
at SandBoxWinform.Program.Main () [0x00000]
--------------------------------------------------------------
using System;
using System.Windows.Forms;
using System.Collections;
partial class OrderForm : Form
{
public OrderForm()
{
InitializeComponent();
}
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.CustomersBindingSource = new
System.Windows.Forms.BindingSource(this.components);
this.NorthwindDataSet = new NorthwindDataSet();
this.OrdersBindingSource = new
System.Windows.Forms.BindingSource(this.components);
//
// CustomersBindingSource
//
this.CustomersBindingSource.DataMember = "Customers";
this.CustomersBindingSource.DataSource = this.NorthwindDataSet;
//
// NorthwindDataSet
//
this.NorthwindDataSet.DataSetName = "NorthwindDataSet";
this.NorthwindDataSet.SchemaSerializationMode =
System.Data.SchemaSerializationMode.IncludeSchema;
((System.ComponentModel.ISupportInitialize)(this.NorthwindDataSet)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.OrdersBindingSource)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
private System.ComponentModel.IContainer components = null;
private NorthwindDataSet NorthwindDataSet;
private System.Windows.Forms.BindingSource CustomersBindingSource;
private System.Windows.Forms.BindingSource OrdersBindingSource;
}
public class NorthwindDataSet : global::System.Data.DataSet
{
public CustomersDataTable Customers;
public partial class CustomersDataTable : global::System.Data.DataTable,
global::System.Collections.IEnumerable
{
public IEnumerator GetEnumerator()
{
throw new System.Exception();
}
}
}
--
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