Community
Participate
Working Groups
In order to construct a 3.x part, we need the EditorReference/ViewReference because it contains much needed information required to instantiate the part in question (such as the IConfigurationElement). We use an event handler to set the reference into the context when a part's context has been set but if the part is just closed, the part reference needs to go and so does the event handler. At the moment, this doesn't happen. When the part is reopened later, there are now two event handlers. It seems the right one gets the last "set" called on the context so it works but this is still a bug nonetheless.
Due to the changes for bug 315133, we are no longer creating multiple references/event handlers. The reference itself is still lingering if an uninitialized part is closed though.
Created attachment 183944 [details] Part reference destruction patch v1
Fixed in CVS HEAD.