-
Notifications
You must be signed in to change notification settings - Fork 51
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
Lifetime of Context
#75
Comments
Anything from the Though the underlying |
Thanks! |
I'd like to propose reopening this issue, as this could be specified more clearly in the documentation for everyone to see. The current safety documentation for
which could be interpreted as anything from @daxpedda's “stay alive as long as Surface” to the perverse “it doesn't matter if the handle stops being valid while you're still using the Surface, as long as you drop the Context first so its 'lifetime' has ended”. (And “the lifetime of” isn't probably what you mean either, since the lifetime of the (I also wish "the provided objects are valid to draw a 2D buffer to" was phrased as something that the author of a cross-platform program finds actionable — what documentation should they read to know what it means? But that's not this issue.) This is a little nitpicky, but I think that it's important to help users writing |
This is now fixed as of #132 |
I know this is not released yet, but after #64
Context
andSurface
were split.How long is
Context
supposed to be kept alive? Does it need to stay alive as long asSurface
, or can it be safely dropped whileSurface
is kept around and used?The text was updated successfully, but these errors were encountered: