[Mono-list] Patch for crash in async operations

Gonzalo Paniagua Javier gonzalo@ximian.com
28 Feb 2003 08:51:36 +0100


El vie, 28 de 02 de 2003 a las 04:45, Elan Feingold escribió:
> Any time a Worker was created with a null callback, for example:
> 
> network.BeginWrite (buffer, offset, size, null, null);
> 
> This would result in:
> 
> Unhandled Exception: System.NullReferenceException: A null value was
> found where an object instance was required
> in <0x000b7> 00 .Worker:End ()
> in <0x00068> 00 .Worker:Send ()
> in <0x0005b> 01 System.MulticastDelegate:invoke_void ()
> 
> This is because the code in Socket.cs wasn't checking for a null
> callback.

Aha! This is the patch i've been waiting for so long ;-). I got that
error in xsp.

It's in CVS now.

Thank you very much!

-Gonzalo