[Mono-bugs] [Bug 70757][Nor] Changed - Serialization - Unsupported primitive type: System.IntPtr

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 22 Dec 2004 16:15:11 -0500 (EST)


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 sebastien@ximian.com.

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

--- shadow/70757	2004-12-22 16:13:21.000000000 -0500
+++ shadow/70757.tmp.1683	2004-12-22 16:15:11.000000000 -0500
@@ -2,13 +2,13 @@
 Product: Mono: Class Libraries
 Version: 1.1
 OS: All
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Normal
 Component: CORLIB
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: sebastien@ximian.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
@@ -106,6 +106,65 @@
 * I didn't try if this affected Mono 1.0.x
 
 ------- Additional Comments From sebastien@ximian.com  2004-12-22 16:13 -------
 Created an attachment (id=13578)
 ObjectWriter.diff
 
+
+------- Additional Comments From sebastien@ximian.com  2004-12-22 16:15 -------
+After applying the ObjectWriter patch I now get
+
+1)
+MonoTests.System.Security.Principal.WindowsIdentityTest.SerializeRoundTrip
+: System.NullReferenceException : Object reference not set to an
+instance of an object
+in [0x00000] (at
+/home/poupou/svn/mcs/class/corlib/System.Runtime.Serialization.Formatters.Binary/BinaryCommon.cs:97)
+System.Runtime.Serialization.Formatters.Binary.BinaryCommon:IsPrimitive
+(System.Type)
+in [0x00002] (at
+/home/poupou/svn/mcs/class/corlib/System.Runtime.Serialization.Formatters.Binary/ObjectReader.cs:491)
+System.Runtime.Serialization.Formatters.Binary.ObjectReader:ReadValue
+(System.IO.BinaryReader,object,long,System.Runtime.Serialization.SerializationInfo,System.Type,string,System.Reflection.MemberInfo,int[])
+in [0x0007e] (at
+/home/poupou/svn/mcs/class/corlib/System.Runtime.Serialization.Formatters.Binary/ObjectReader.cs:259)
+System.Runtime.Serialization.Formatters.Binary.ObjectReader:ReadObjectContent
+(System.IO.BinaryReader,System.Runtime.Serialization.Formatters.Binary.ObjectReader/TypeMetadata,long,object&,System.Runtime.Serialization.SerializationInfo&)
+in [0x0001b] (at
+/home/poupou/svn/mcs/class/corlib/System.Runtime.Serialization.Formatters.Binary/ObjectReader.cs:231)
+System.Runtime.Serialization.Formatters.Binary.ObjectReader:ReadObjectInstance
+(System.IO.BinaryReader,bool,long&,object&,System.Runtime.Serialization.SerializationInfo&)
+in [0x0006c] (at
+/home/poupou/svn/mcs/class/corlib/System.Runtime.Serialization.Formatters.Binary/ObjectReader.cs:152)
+System.Runtime.Serialization.Formatters.Binary.ObjectReader:ReadObject
+(System.Runtime.Serialization.Formatters.Binary.BinaryElement,System.IO.BinaryReader,long&,object&,System.Runtime.Serialization.SerializationInfo&)
+in [0x00034] (at
+/home/poupou/svn/mcs/class/corlib/System.Runtime.Serialization.Formatters.Binary/ObjectReader.cs:124)
+System.Runtime.Serialization.Formatters.Binary.ObjectReader:ReadNextObject
+(System.IO.BinaryReader)
+in [0x00045] (at
+/home/poupou/svn/mcs/class/corlib/System.Runtime.Serialization.Formatters.Binary/ObjectReader.cs:105)
+System.Runtime.Serialization.Formatters.Binary.ObjectReader:ReadObjectGraph
+(System.IO.BinaryReader,bool,object&,System.Runtime.Remoting.Messaging.Header[]&)
+in [0x0007f] (at
+/home/poupou/svn/mcs/class/corlib/System.Runtime.Serialization.Formatters.Binary/BinaryFormatter.cs:163)
+System.Runtime.Serialization.Formatters.Binary.BinaryFormatter:Deserialize
+(System.IO.Stream,System.Runtime.Remoting.Messaging.HeaderHandler)
+in [0x00003] (at
+/home/poupou/svn/mcs/class/corlib/System.Runtime.Serialization.Formatters.Binary/BinaryFormatter.cs:127)
+System.Runtime.Serialization.Formatters.Binary.BinaryFormatter:Deserialize
+(System.IO.Stream)
+in [0x00024] (at
+/home/poupou/svn/mcs/class/corlib/Test/System.Security.Principal/WindowsIdentityTest.cs:221)
+MonoTests.System.Security.Principal.WindowsIdentityTest:SerializeRoundTrip
+()
+in <0xc716f6d6> (wrapper managed-to-native)
+System.Reflection.MonoMethod:InternalInvoke (object,object[])
+in <0x00004> (wrapper managed-to-native)
+System.Reflection.MonoMethod:InternalInvoke (object,object[])
+in [0x00033] (at
+/home/poupou/svn/mcs/class/corlib/System.Reflection/MonoMethod.cs:121)
+System.Reflection.MonoMethod:Invoke
+(object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
+
+in the unit tests. So the same problem must exist to recreate
+serialized objects with IntPtr.