[Mono-winforms-list] SerializationException not being caught

Robert Jordan robertj at gmx.net
Sun Feb 25 13:17:14 EST 2007


Paul wrote:
> Hi,
> 
> Can someone check to see if it's me or SerializationException not being
> correctly caught in this code?

How about adding

catch (Exception ex) {
	Console.WriteLine (ex);
	...
}

to the end of try-catch block? This will show you which exception
was actually thrown. I guess it's an IOException (end of stream)
which Mono doesn't wrap with a SerializationException, but feel
free to test it yourself and please file a bug if true.

Robert



More information about the Mono-winforms-list mailing list