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

Using FDocument after THtmlView.Clear crash if FDocument is nil. #345

Open
manliomazzon opened this issue Feb 28, 2024 · 0 comments
Open

Comments

@manliomazzon
Copy link

I'm not 100% sure of this, but I think that if you call Clear, FDocument becomes nil, and in a few other places FDocument is used without checking if it is nil.

Therefore, because FDocument can be nil, you should always check FDocument <> nil before using it, or before trying to destroy it.

I had these crashes until I changed the code to always check FDocument<>nil before using it, and the crashes stopped.

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

No branches or pull requests

1 participant