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

entire thread closes on window close, using another thread is not allowed by winit. #602

Closed
toastmod opened this issue Nov 8, 2020 · 1 comment
Labels
feature New feature or request question Further information is requested shell
Milestone

Comments

@toastmod
Copy link

toastmod commented Nov 8, 2020

i noticed that closing a window closes the entire thread, how can i make it so that the program continues after the window is closed?
im not able to run iced on another thread besides the main thread as i get this when i try:

Initializing the event loop outside of the main thread is a significant cross-platform compatibility hazard. If you really, absolutely need to create an EventLoop
on a different thread, please use the `EventLoopExtWindows::new_any_thread`

i'd also like to point out that there is a problem with sharing COMs on certain threads. for example in one of my programs my main function calls CPAL's audio thread before starting my iced GUI, but im given an error about different COM modes. I have to get to a math assignment right now so i will post about the COM problem later. thanks!

@hecrj hecrj added the question Further information is requested label Nov 11, 2020
@hecrj hecrj added feature New feature or request shell labels Jan 19, 2022
@hecrj
Copy link
Member

hecrj commented Jan 19, 2022

Fixed by #1112!

@hecrj hecrj closed this as completed Jan 19, 2022
@hecrj hecrj added this to the 0.4.0 milestone Jan 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request question Further information is requested shell
Projects
None yet
Development

No branches or pull requests

2 participants