[Mono-dev] ArgumentNullException in GetSerializationCallbacks method

Robert Jordan robertj at gmx.net
Mon Feb 12 13:20:15 EST 2007


Vadim B. Guzev wrote:
> It shouldn't be possible for method GetSerializationCallbacks to
> receive null value as a parameter (because in this case the exception
> should be generated in RaiseOnDeserializedEvent method. Or is it
> possible in mono that obj.GetType() is equal to null while obj itself
> is not equal to null?

It's theoretically impossible, but the stack trace proves that
it really happens.

> P.P.S. I can't create clear example which demonstrates this problem,
> because it appears only when I'm using distributed metacluster
> environment (where several clusters execute one program written in
> MC# language). Even when I'm using one cluster it works as expected,
> so I suppose that the only way to find the reason of these exceptions
> is to analyze the code of those two methods... Please, help me!

You should run the application under gdb and try to get a native
stack trace. See



More information about the Mono-devel-list mailing list