-
-
Notifications
You must be signed in to change notification settings - Fork 211
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
Crash when using process #87
Comments
Good catch. I found the error. Let me fix it. I'll ping you as soon as possible. |
Fixed upstream. Thank you very much. |
Nice :) |
I saw you still capture a reference to the handle with a callback on the |
Yes, I already pushed a fix with your fix, thanks a lot! |
Hi,
Using that example code:
This simple example crashes when the Object is deleted and the process is still running. For example if you start it with:
Deleting the object after it has finished works:
It appears to crash in
uvw::Handle::closeCallback
when trying to get the uvw::Handle but it was already deleted when freeing Object. A workaround is to keep a reference of the uvw::Handle in a CloseEvent lambda like:It works but it's not nice. Also this problem only occurs when using uvw::ProcessHandle.
The text was updated successfully, but these errors were encountered: