[Mono-list] ArgumentNullException

Yury Serdyuk Yury at serdyuk.botik.ru
Thu Apr 24 08:56:27 EDT 2008

Hi !

Using BinaryFormatter.Deserialize in multithreaded mode, time to time I 
have received:

> Unhandled Exception: System.ArgumentNullException: Argument cannot be 
> null.
> Parameter name: enumType
>   at System.Enum.Format (System.Type enumType, System.Object value, 
> System.String format) [0x00000]
>   at System.Enum.ToString (System.String format) [0x00000]
>   at System.Enum.ToString () [0x00000]
>   at System.String.Concat (System.Object obj1, System.Object obj2) 
> [0x00000]
>   at 
> System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadNextObject 
> (System.IO.BinaryReader reader) [0x00000]
>   at 
> System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadObjectGraph 
> (System.IO.BinaryReader reader, Boolean readHeaders, System.Object& 
> result, System.Runtime.Remoting.Messaging.Header[]& headers) [0x00000]
>   at 
> System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.NoCheckDeserialize 
> (System.IO.Stream serializationStream, 
> System.Runtime.Remoting.Messaging.HeaderHandler handler) [0x00000]
>   at 
> System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize 
> (System.IO.Stream serializationStream) [0x00000]

Unfortunately, I cannot reproduce this situation in pure form,
because it is occured in distributed application.

But how is it possible at all I wonder ?



More information about the Mono-list mailing list