[Mono-bugs] [Bug 671530] New: NativeWindow.ReleaseHandle is not called when a window is destroyed

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Feb 12 10:05:42 EST 2011



           Summary: NativeWindow.ReleaseHandle is not called when a window
                    is destroyed
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.8.x
          Platform: All
        OS/Version: Windows
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: alexandre_mutel at yahoo.fr
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

User-Agent:       Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b11) Gecko/20100101

When the window behind a NativeWindow is closed, the ReleaseHandle is not

>From MSDN documentation, "A window automatically calls the method if it
receives a native Win32 WM_NCDESTROY message, indicating that Windows has
destroyed the handle". (source:

Reproducible: Always

Steps to Reproduce:
1. Create a derivative class from NativeWindow implementing DestroyHandle
2. Create a Windows.Form and pass the handle to the MyNativeWindow
3. Show the form and close it

Actual Results:  
=> NativeWindow.DestroyHandle is not called

Expected Results:  
NativeWindow.DestroyHandle should be called

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