[Mono-bugs] [Bug 464628] WARNING **: _wapi_handle_unref: Attempting to unref unused handle on a ProcessTest case.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Jan 10 18:14:07 EST 2009


User vargaz at gmail.com added comment

Zoltan Varga <vargaz at gmail.com> changed:

           What    |Removed                     |Added
                 CC|                            |vargaz at gmail.com

--- Comment #1 from Zoltan Varga <vargaz at gmail.com>  2009-01-10 16:14:05 MST ---
The messages are sent for the process handle itself. The handling of dispose in
ProcessWaitHandle seems seriously screwed up:
- we keep a separate 'dispose' field, then call the superclass Dispose ()
  which checks it own 'dispose' field, which is also false, so the superclass
  Dispose () is executed as well.
- in 1.0, WaitHandle.Dispose () closes the handle again, so the same handle is 
closed twice, for some reason, this does not seem to cause a problem.
- in 2.0, we wrap the handle value in a SafeWaitHandle, which we also close in
  WaitHandle.Dispose (), so the handle is again closed twice, this causes the
  wapi_unref () messages.

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list