[Mono-bugs] [Bug 78810][Maj] Changed - Crash with DataRelations

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Jul 10 17:46:12 EDT 2006


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by martin at ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=78810

--- shadow/78810	2006-07-10 17:44:00.000000000 -0400
+++ shadow/78810.tmp.29256	2006-07-10 17:46:12.000000000 -0400
@@ -1,14 +1,14 @@
 Bug#: 78810
 Product: Mono: Class Libraries
 Version: 1.0
-OS: 
+OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Major
 Component: Sys.Data
 AssignedTo: tsenganal at novell.com                            
 ReportedBy: martin at ximian.com               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
@@ -24,6 +24,36 @@
 
 
 ------- Additional Comments From martin at ximian.com  2006-07-10 17:44 -------
 Created an attachment (id=17272)
 XSD-file as resource
 
+
+------- Additional Comments From martin at ximian.com  2006-07-10 17:46 -------
+Compile with
+
+mcs /debug /r:System.Data /resource:Data.xsd,DebuggerSession Data.cs
+
+and it crashes:
+
+martin at rohan:/work/mordor> mono --debug Data.exe
+
+Unhandled Exception: System.NullReferenceException: Object reference
+not set to an instance of an object
+  at System.Data.DataRelation..ctor (System.String relationName,
+System.Data.DataColumn[] parentColumns, System.Data.DataColumn[]
+childColumns, Boolean createConstraints) [0x00074] in
+/work/asgard/mono/mcs/class/System.Data/System.Data/DataRelation.cs:105
+  at System.Data.XmlSchemaDataImporter.GenerateRelationship
+(System.Data.RelationStructure rs) [0x0010b] in
+/work/asgard/mono/mcs/class/System.Data/System.Data/XmlSchemaDataImporter.cs:604
+  at System.Data.XmlSchemaDataImporter.Process () [0x00355] in
+/work/asgard/mono/mcs/class/System.Data/System.Data/XmlSchemaDataImporter.cs:401
+  at System.Data.DataSet.ReadXmlSchema (System.Xml.XmlReader reader)
+[0x00000] in
+/work/asgard/mono/mcs/class/System.Data/System.Data/DataSet.cs:904
+  at System.Data.DataSet.ReadXmlSchema (System.IO.Stream stream)
+[0x00008] in
+/work/asgard/mono/mcs/class/System.Data/System.Data/DataSet.cs:881
+  at X.Main () [0x0001d] in /work/mordor/Data.cs:17
+martin at rohan:/work/mordor>
+


More information about the mono-bugs mailing list