Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

window::Settings::exit_on_close_request doesn't work on windows (STATUS_ACCESS_VIOLATION) #2268

Open
2 tasks done
gabrieldechichi opened this issue Feb 19, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@gabrieldechichi
Copy link

Is there an existing issue for this?

  • I have searched the existing issues.

Is this issue related to iced?

  • My hardware is compatible and my graphics drivers are up-to-date.

What happened?

When using ALT + F4 to close an iced application on Windows, it hangs for a couple of seconds than crashes with the following error:

error: process didn't exit successfully: `D:\dev\src\github.com\other\iced\target\debug\custom_widget.exe` (exit code: 0xc00000│
│05, STATUS_ACCESS_VIOLATION)                                                                                                   │

That is 100% repro in a minimal Sandbox project, as well as of any the iced examples, for iced 0.12.0

Using iced::window::close() works fine

What is the expected behavior?

Standard close command (ALT + F4 on Windows) should close the application sucesfully.

Version

crates.io release

Operating System

Windows

Do you have any log output?

error: process didn't exit successfully: `D:\dev\src\github.com\other\iced\target\debug\custom_widget.exe` (exit code: 0xc00000│
│05, STATUS_ACCESS_VIOLATION)
@gabrieldechichi gabrieldechichi added the bug Something isn't working label Feb 19, 2024
@n1ght-hunter
Copy link
Contributor

did you set close on request to false or true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants