Jump to:

This means that only the GraphicContext instance that are "manually" disposed get removed from the `available_contexts` dictionary. IOW the instances that are freed by the Garbage Collector are never removed.

This means it's possible to get collision when a native contextis reused (same IntPtr key value) which throws unexpected exceptions to the application.