[Mono-list] ArgumentNullException
Yury Serdyuk
Yury at serdyuk.botik.ru
Thu Apr 24 09:44:37 EDT 2008
>>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 ?
>>
>>
>
>
>BinaryFormatter is not thread safe.
>
>
>
No, I use in each thread a new formatter:
public static object Deserialize( MemoryStream stream ) {
BinaryFormatter bf = new BinaryFormatter();
object obj = bf.Deserialize ( stream );
return ( obj );
}
Yury.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20080424/596280d6/attachment.html
More information about the Mono-list
mailing list