This is a migrated thread and some comments may be shown as answers.

Error HRESULT E_FAIL has been returned from a call to a COM component.

1 Answer 74 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Alexander
Top achievements
Rank 1
Alexander asked on 18 Oct 2010, 10:18 AM

Hi, I add item o TreeView using "_treeView.Items.Add()", then I add child item to this item.

When I remove the first item using _treeView.Items.Remove() the error occurs:

"Error HRESULT E_FAIL has been returned from a call to a COM component."

at MS.Internal.XcpImports.CheckHResult(UInt32 hr)
at MS.Internal.XcpImports.Collection_RemoveAt[T](PresentationFrameworkCollection`1 collection, UInt32 index)
at System.Windows.PresentationFrameworkCollection`1.RemoveAtImpl(Int32 index)
at System.Windows.Controls.ItemCollection.RemoveAtImpl(Int32 index)
at System.Windows.Controls.ItemCollection.RemoveImpl(Object value)
at System.Windows.Controls.ItemCollection.RemoveInternal(Object value)
at System.Windows.PresentationFrameworkCollection`1.Remove(T value)

Can you help me please? Thanks.

1 Answer, 1 is accepted

Sort by
0
Kiril Stanoev
Telerik team
answered on 19 Oct 2010, 09:43 AM
Hello Alexander,

I was not able to reproduce this issue. Could you please take a look at the attached project and let me know if I am missing something. I'd be glad to further assist you.

Kind regards,
Kiril Stanoev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
TreeView
Asked by
Alexander
Top achievements
Rank 1
Answers by
Kiril Stanoev
Telerik team
Share this question
or