2009-02-08, 04:50 PM
Sub,
While investigating a
While investigating a
Quote:Unable to cast object of type 'System.Collections.ArrayList' to type 'GBPVR.Public.GBPVRUiElement'.exception when calling UiButton.Dispose() I noticed the following bug in UiButton.Dispose():
Code:
public void Dispose()
{
ArrayList list = new ArrayList();
if (this.normalUiElement != null)
{
list.Add(list); // SHOULD BE: list.Add(this.normalUiElement);
}
if (this.selectedUiElement != null)
{
list.Add(this.selectedUiElement);
}
PluginHelperFactory.getPluginHelper().DisposeResources(list);
}