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

Crash due to attempt to create a weak store of an object being deallocated #428

Closed
LeoNatan opened this issue Nov 22, 2017 · 1 comment
Closed

Comments

@LeoNatan
Copy link
Contributor

Not sure yet how to fix.

@LeoNatan
Copy link
Contributor Author

Due to how the Objective C runtime works, if an object is in the middle of deallocation, a weak store should not be attempted becase the object’s weak table is already freed. Instead, I am now using a proxy objects, which is set as an associated object in question. If the object is in the middle of deallocation, the associated object will release at the end of deallocation.

@wix wix locked and limited conversation to collaborators Jul 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants