Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.

Crash when window is released #124

Open
zachwaugh opened this issue Jul 19, 2012 · 0 comments
Open

Crash when window is released #124

zachwaugh opened this issue Jul 19, 2012 · 0 comments

Comments

@zachwaugh
Copy link
Contributor

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant