Back    
Priority:
Type:
State:
Assignee:
Subsystem:
Affected versions:
Fixed in:

DTRC-666

Unable to cast object of type '​JetBrains​.​dotTrace​.​ViewControls​.​Memory​.​ClassTreeView​.​DataHolder​' to type '​JetBrains​.​dotTrace​.​TreeViewControl​.​AbstractTreeNode​'​.

0
Build308
JetBrains.ReSharper.Util.InternalErrorException: Unable to cast object of type 'JetBrains.dotTrace.ViewControls.Memory.ClassTreeView.DataHolder' to type 'JetBrains.dotTrace.TreeViewControl.AbstractTreeNode'.
An exception has occurred during action 'CopySubTreeToClipboard' execution ---> System.InvalidCastException: Unable to cast object of type 'JetBrains.dotTrace.ViewControls.Memory.ClassTreeView.DataHolder' to type 'JetBrains.dotTrace.TreeViewControl.AbstractTreeNode'.
at JetBrains.dotTrace.ViewControls.Memory.ClassTreeView.ReportProvider.ViewTreeStructure.JetBrains.dotTrace.Utils.TreeHelper.ITreeStructure.GetChildren(Object o)
in C:\Agent\work\Server\86e3e229d7b6a863\src\ViewControls.Memory\src\ClassTreeView\ReportProvider.cs:line 230
at JetBrains.dotTrace.ViewControls.Memory.ClassTreeView.ReportProvider.HasUncalculatedHelds(ITreeStructure structure, IHeldStorage heldStorage, GetNodesByAliasDelegate getNodesByAlias, Boolean isView, Object r) in C:\Agent\work\Server\86e3e229d7b6a863\src\ViewControls.Memory\src\ClassTreeView\ReportProvider.cs:line 142
at JetBrains.dotTrace.ViewControls.Memory.ClassTreeView.ReportProvider.BeforeShowDialog(IWin32Window window, Object o) in C:\Agent\work\Server\86e3e229d7b6a863\src\ViewControls.Memory\src\ClassTreeView\ReportProvider.cs:line 90
at JetBrains.dotTrace.Actions.CopySubTreeToClipboardAction.Execute(IDataContext context, DelegateExecute nextExecute) in C:\Agent\work\Server\86e3e229d7b6a863\src\dotTrace2\src\Actions\CopySubTreeToClipboardAction.cs:line 35
at JetBrains.ReSharper.ActionManagement.ExecutableAction.Execute(IDataContext context) in c:\Agent\work\Server\ReSharper2.0\src\ActionManagement\src\Action\ExecutableAction.cs:line 25
--- End of inner exception stack trace ---

at JetBrains.ReSharper.Util.Logger.LogExceptionEx(Exception, String, Boolean) in c:\Agent\work\Server\ReSharper2.0\src\Util\src\Logger.cs:line 331 column 9
at JetBrains.ReSharper.Util.Logger.LogException(String, Exception)
in c:\Agent\work\Server\ReSharper2.0\src\Util\src\Logger.cs:line 348 column 5
at JetBrains.ReSharper.ActionManagement.ExecutableAction.Execute(IDataContext) in c:\Agent\work\Server\ReSharper2.0\src\ActionManagement\src\Action\ExecutableAction.cs:line 30 column 11
at JetBrains.ReSharper.ActionManagement.MenuItemWithAction.OnClick(EventArgs) in c:\Agent\work\Server\ReSharper2.0\src\ActionManagement\src\Menu\MenuItemWithAction.cs:line 67 column 4
at System.Windows.Forms.MenuItemData.Execute()
at System.Windows.Forms.Command.Invoke()
at System.Windows.Forms.Command.DispatchID(Int32)
at System.Windows.Forms.Control.WmCommand(Message&)
at System.Windows.Forms.Control.WndProc(Message&)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message&)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message&)
at System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&)
at System.Windows.Forms.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32, Int32, Int32)
at System.Windows.Forms.ThreadContext.RunMessageLoopInner(Int32, ApplicationContext)
at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32, ApplicationContext)
at System.Windows.Forms.Application.Run(Form)
at JetBrains.dotTrace.PocketTasks.RunMainFormTask.Execute() in C:\Agent\work\Server\86e3e229d7b6a863\src\dotTrace2\src\PocketTasks\RunMainFormTask.cs:line 17 column 3
at JetBrains.dotTrace.MainStuff.Main(String[]) in C:\Agent\work\Server\86e3e229d7b6a863\src\dotTrace2\src\MainStuff.cs:line 31 column 6



Issue was closed
Comments (4)
History (0)
Ross L. Owen Ross L. Owen 30 Jan 2008 20:20 (17 months ago)
trying to copy subtree
Build305
Ross L. Owen Ross L. Owen 30 Jan 2008 20:21 (17 months ago)
Previous exception:DTRC-666
Build305
Mr. Hide Mr. Hide 15 Mar 2008 16:51 (15 months ago)
Memory profiling. "Roots" tab. Views - "Namespace tree". Right click on the any tree item without subtree. Click on "Copy subtree" generates an Unhandled exception.
Build305
Guido Breder Guido Breder 17 Apr 2008 15:11 (14 months ago)
Build305