Skip to content

Will winit call DestroyWindow twice? #384

Closed

Description

@LYP951018

I saw that winit posts WM_CLOSE in Window's drop method, and DefWindowProcW calls DestroyWindow internally when handling WM_CLOSE. Then the drop method for WindowWrapper calls DestroyWindow again? Did I understand something wrongly?

Activity

  1. added
    B - bug
    DS - win32
    on Jan 20, 2018
  2. GabrielMajeri commented on Jan 22, 2018

    @GabrielMajeri
    Contributor

    Can confirm the bug, added an assertion and it got triggered. Will follow up with a pull request to fix this shortly.

  3. added a commit that references this issue on Jan 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    B - bugDS - win32

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions