[Mono-devel-list] Thread and Timer problems

Gonzalo Paniagua Javier gonzalo at ximian.com
Sat Apr 10 01:43:36 EDT 2004


El jue, 08-04-2004 a las 16:01, Jörg Rosenkranz escribió:
> Hi all,
> 
> We are recognizing some strange problems with Threads and Timers in our 
> application:

[...]	
> 2) Timer.Dispose throws an exception.
> 	We are getting following exception when disposing a Timer object:	
> 
> 	[System.NullReferenceException] Object reference not set to an instance of an object
> 		in (unmanaged) /lib/libpthread.so.0(pthread_cond_broadcast+0x34) [0x40bda194]
> 		in (unmanaged) /usr/local/lib/libmono.so.0 [0x400e993e]
> 		in (unmanaged) /usr/local/lib/libmono.so.0 [0x400e97c0]
> 		in (unmanaged) /usr/local/lib/libmono.so.0 [0x400ba26e]
> 		in <0x00027> System.Threading.ManualResetEvent:Set ()
> 		in <0x0005d> (wrapper remoting-invoke-with-check) System.Threading.ManualResetEvent:Set ()
> 		in <0x00039> Runner:Abort ()
> 		in <0x0004f> (wrapper remoting-invoke-with-check) Runner:Abort ()
> 		in <0x00048> System.Threading.Timer:Dispose ()
> 		in <0x0004f> (wrapper remoting-invoke-with-check) System.Threading.Timer:Dispose ()
> 	
> 	Also not reproducible in a simple test case.

I hit this yesterday and fixed it in CVS.

-Gonzalo





More information about the Mono-devel-list mailing list