[Mono-dev] More _wapi_handle_unref fun
Brian Crowell
mono-devel at fluggo.com
Mon Jul 17 19:30:22 EDT 2006
Well, my program has run for at least a week now, and it just now gave up the
ghost. I now have a screen full of these messages:
---------------------
** (/opt/MyProgram/MyProgram.exe:2603): WARNING **: _wapi_handle_unref:
Attempting to unref unused handle 0x1
---------------------
They are all identical; the screen shows eight in a row, and I don't know how
many came before it.
After some time (probably based on my program's System.Timers.Timer instance)
the screen starts showing strange exceptions, such as a failed Console.WriteLine
call with some low-level exception or a Socket.Send call that insists "The
descriptor is not a socket."
This is from a recent (1.1.16-ish) checkout of Mono; I still heavily use the
System.Timers.Timer class and invoke outside processes.
Several questions:
1. Does anyone know what might cause this? Is it possible that I've exhausted
all possible handles because the program has run for so long?
2. Is there a way I can make Mono abort when this occurs? This way, I can at
least restart the process, rather than let it think that it still has any valid
data left.
--Brian
More information about the Mono-devel-list
mailing list