[Mono-dev] ArgumentNullException in GetSerializationCallbacks method

Vadim B. Guzev vguzev at yandex.ru
Mon Feb 12 14:45:35 EST 2007


> You should run the application under gdb and try to get a native
> stack trace. See
> 	http://mono-project.com/Debugging#Debugging_with_GDB
> Robert

Robert, did you mean such kind of traces?

--8<----------------------------------------
  Error type: System.ArgumentNullException
  Error message: null key
Parameter name: key
  Error source: mscorlib
  Error stack trace:
at System.Collections.Hashtable.get_Item (System.Object key) [0x000ca] in /home/vadim/mono/mono-1.2.2.1/mcs/class/corlib/System.Collections/Hashtable.cs:378
  at System.Runtime.Serialization.SerializationCallbacks.GetSerializationCallbacks (System.Type t) [0x00011] in /home/vadim/mono/mono-1.2.2.1/mcs/class/corlib/System.Runtime.Serialization/SerializationCallbacks.cs:145
  at System.Runtime.Serialization.ObjectManager.RaiseOnDeserializingEvent (System.Object obj) [0x00000] in /home/vadim/mono/mono-1.2.2.1/mcs/class/corlib/System.Runtime.Serialization/ObjectManager.cs:177
  at System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadObjectContent (System.IO.BinaryReader reader, System.Runtime.Serialization.Formatters.Binary.TypeMetadata metadata, Int64 objectId, System.Object& objectInstance, System.Runtime.Serialization.SerializationInfo& info) [0x0002d] in /home/vadim/mono/mono-1.2.2.1/mcs/class/corlib/System.Runtime.Serialization.Formatters.Binary/ObjectReader.cs:266
  at System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadObjectInstance (System.IO.BinaryReader reader, Boolean isRuntimeObject, Boolean hasTypeInfo, System.Int64& objectId, System.Object& value, System.Runtime.Serialization.SerializationInfo& info) [0x00014] in /home/vadim/mono/mono-1.2.2.1/mcs/class/corlib/System.Runtime.Serialization.Formatters.Binary/ObjectReader.cs:240
  at System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadObject (BinaryElement element, System.IO.BinaryReader reader, System.Int64& objectId, System.Object& value, System.Runtime.Serialization.SerializationInfo& info) [0x0009d] in /home/vadim/mono/mono-1.2.2.1/mcs/class/corlib/System.Runtime.Serialization.Formatters.Binary/ObjectReader.cs:165
  at System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadNextObject (System.IO.BinaryReader reader) [0x00027] in /home/vadim/mono/mono-1.2.2.1/mcs/class/corlib/System.Runtime.Serialization.Formatters.Binary/ObjectReader.cs:124
  at System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadObjectGraph (System.IO.BinaryReader reader, Boolean readHeaders, System.Object& result, System.Runtime.Remoting.Messaging.Header[]& headers) [0x00044] in /home/vadim/mono/mono-1.2.2.1/mcs/class/corlib/System.Runtime.Serialization.Formatters.Binary/ObjectReader.cs:105
  at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.NoCheckDeserialize (System.IO.Stream serializationStream, System.Runtime.Remoting.Messaging.HeaderHandler handler) [0x00079] in /home/vadim/mono/mono-1.2.2.1/mcs/class/corlib/System.Runtime.Serialization.Formatters.Binary/BinaryFormatter.cs:172
  at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize (System.IO.Stream serializationStream) [0x00000] in /home/vadim/mono/mono-1.2.2.1/mcs/class/corlib/System.Runtime.Serialization.Formatters.Binary/BinaryFormatter.cs:129
  at MCSharp.Serialization.Deserialize (System.IO.Stream stream) [0x00000]
--8<----------------------------------------

Best regards,
Vadim




More information about the Mono-devel-list mailing list