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

ITickable, deletion inside advanceTime. #435

Closed
wants to merge 2 commits into from

Conversation

lukaspj
Copy link
Contributor

@lukaspj lukaspj commented Jul 6, 2013

Adds a fix for when an ITickable object deletes itself inside the advanceTime procedure.
As discussed here

Kudos to David Wyand for this thread which explains the issue and helped me alot.

@crabmusket
Copy link
Contributor

@crabmusket crabmusket commented Jul 7, 2013

I suspect that testing against 0xFEEEFEEE is a bad idea. This article claims that these bit patterns are Windows-specific, Windows API-specific, and only show up in debug builds anyway. Have you verified this in a release build?

@lukaspj
Copy link
Contributor Author

@lukaspj lukaspj commented Jul 7, 2013

There is always something isn't there?
Ohwell it's alot more intuitive now anyways..

This commit makes the commit a239114 work in release builds aswell.
@lukaspj
Copy link
Contributor Author

@lukaspj lukaspj commented Jul 7, 2013

Damn! Pull requested it into master! Will re-request it into development

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

Successfully merging this pull request may close these issues.

None yet

2 participants