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

2 posts, 0 answers
  1. Alexander
    Alexander avatar
    18 posts
    Member since:
    Jul 2010

    Posted 18 Oct 2010 Link to this post

    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.

  2. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1512 posts

    Posted 19 Oct 2010 Link to this post

    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
Back to Top