-
Notifications
You must be signed in to change notification settings - Fork 2k
Window not destroyed on exit on windows #3811
Copy link
Copy link
Open
Labels
bugSomething is brokenSomething is brokeneframeRelates to epi and eframeRelates to epi and eframenative-windowsRunning on native Windows OSRunning on native Windows OS
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething is brokenSomething is brokeneframeRelates to epi and eframeRelates to epi and eframenative-windowsRunning on native Windows OSRunning on native Windows OS