|Project:||The Open Toolkit library |
|Category:||bug report |
If the first context created gets garbage collected without being disposed, newly created contexts will not be shared. The problem is that a WeakReference is used to store references to contexts in the 'available_contexts' list, but the WeakReference's Target property is not checked for null in GraphicsContext.FindSharedContext. A patch that fixes the problem is attached.