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

Complain if casting a freed object in a debug session #51094

Merged
merged 1 commit into from
Sep 14, 2021

Conversation

RandomShaper
Copy link
Member

@RandomShaper RandomShaper commented Jul 31, 2021

The idea is to give the user a chance to realize a mistake that will cause a crash in a release build (or with no debugger attached).

Fixes #50968.

NOTE: The version for 3.x is #51095.

@reduz
Copy link
Member

reduz commented Aug 24, 2021

Looks good to me, I guess @vnen should approve though.

@vnen
Copy link
Member

vnen commented Sep 13, 2021

Besides my question it looks good to me.

The idea is to give the user a chance to realize a mistake that will cause a crash in a release build (or with no debugger attached).
@RandomShaper RandomShaper force-pushed the error_cast_freed_object branch from 426dc25 to ddc7d7e Compare September 14, 2021 19:07
@akien-mga akien-mga merged commit 1c7aec9 into godotengine:master Sep 14, 2021
@akien-mga
Copy link
Member

Thanks!

@RandomShaper RandomShaper deleted the error_cast_freed_object branch September 15, 2021 12:14
@KoBeWi KoBeWi mentioned this pull request Sep 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Casting a Deleted Object should return an error in debug mode
4 participants