Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

EXC_BAD_ACCESS when creating timer in setTimeout. #104

Open
antonholmquist opened this issue Jun 12, 2013 · 1 comment
Open

EXC_BAD_ACCESS when creating timer in setTimeout. #104

antonholmquist opened this issue Jun 12, 2013 · 1 comment

Comments

@antonholmquist
Copy link
Contributor

screen shot 2013-06-12 at 2 57 21 pm

@antonholmquist
Copy link
Contributor Author

I figured this issue could happen under these circumstances:

1 The _timeout timer is currently running and retaining the SocketIO-object.
2. The owner of the SocketIO-object no longer needs it and releases it.
3. The timer is now the sole owner of the SocketIO-object, and when it is invalidated on line 372, the SocketIO-object is deallocated, and hence, referencing the _timeout variable results in a bad access.

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