You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.
I'm trying to track down a crash that occurs when a window is closed (and released) that contains a TwUI view hierarchy. From what I can tell, while a NSWindow is being dealloc'd, the TUINSView tries to clean up the hierarchy, which ends up accessing the window and causing the crash.
I'm not familiar enough with the TUIView internals to know the proper fix, but if I set the rootView of my TUINSView to nil before the window is released, it doesn't crash and every thing seems to work correctly. Here's a sample project that reproduces the crash - http://cl.ly/3R0J1k3d2f37, but you can also reproduce it in the example project by commenting out the setReleasedWhenClosed: calls in ExampleAppDelegate.m.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm trying to track down a crash that occurs when a window is closed (and released) that contains a TwUI view hierarchy. From what I can tell, while a
NSWindow
is being dealloc'd, theTUINSView
tries to clean up the hierarchy, which ends up accessing the window and causing the crash.I'm not familiar enough with the TUIView internals to know the proper fix, but if I set the
rootView
of myTUINSView
tonil
before the window is released, it doesn't crash and every thing seems to work correctly. Here's a sample project that reproduces the crash - http://cl.ly/3R0J1k3d2f37, but you can also reproduce it in the example project by commenting out thesetReleasedWhenClosed:
calls inExampleAppDelegate.m
.The text was updated successfully, but these errors were encountered: