Skip to content

Window not destroyed on exit on windows #3811

@floriankramer

Description

@floriankramer

Describe the bug
On windows, when clicking the x in the titlebar the window isn't destroyed if the application doesn't exit. This seems similar to #2892. The window closes as expected on version 0.23.0 but fails on 0.25.0 (and also on the current master branch)

To Reproduce
Steps to reproduce the behavior:
In a loop open a window using eframe::run_native with the default options on windows. Close the window. It will now persist until the next call to run_native (at that point the old window is destroyed and a new one created).

fn main() -> Result<()> {
 loop {
    let options = eframe::NativeOptions::default();
    let _ = eframe::run_simple_native("test", options, |_cc, _frame| {});
    std::thread::sleep(std::time::Duration::from_secs(5));
  }
}

Desktop (please complete the following information):

  • OS: Windows 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is brokeneframeRelates to epi and eframenative-windowsRunning on native Windows OS

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions