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

Telerik.Windows.Controls.TreeView.TreeViewPanel.CleanupContainers error

5 Answers 89 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Ram Prasad
Top achievements
Rank 1
Ram Prasad asked on 05 Mar 2010, 07:21 PM
We are getting following error: Is there any solution for this to fix

Object reference not set to an instance of an object.

   at Telerik.Windows.Controls.TreeView.TreeViewPanel.CleanupContainers(Int32 firstViewport, ItemsControl itemsControl)
   at Telerik.Windows.Controls.TreeView.TreeViewPanel.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.ContextLayoutManager.UpdateLayout()
   at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)

5 Answers, 1 is accepted

Sort by
0
Miroslav
Telerik team
answered on 10 Mar 2010, 10:05 AM
Hello Ram Prasad,

This is the second time this error has been reported but unfortunately we have had no luck in reproducing in on our side.

Any help in reproducing this will really be appreciated.

Could you send us a sample project where the error is present? We are keen to look into this issue.

You can mail me directly at miroslav.paskov [at] telerik.com.

Kind regards,
Miroslav
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.
0
Florian
Top achievements
Rank 1
answered on 15 Nov 2010, 07:18 PM
Hi,
I Have the same Problem. It is happening every time you close a branch in Hierarchical Mode
In my case I use a LoadOnDemand szenario, but that is not causing the problem.
I'ts an outOfBrowser Silverlight Application and i'm using the newest Silverlight libraries.

I wrote small test, If you want, I can send it to you.

Regards
Florian Gamper

0
Petar Mladenov
Telerik team
answered on 18 Nov 2010, 02:27 PM
Hello Florian,

This appears to be a bug in the RadTreeView caused by the HIerarchical  virtualization mode. I logged it in our PITS system where you will soon be able to view its status ( TreeView: HIerarchical Virtualization crashes the application when a TreeViewItem is collapsed). I updated your Telerik  points accordingly.
However, you can use the other two virtualization modes: "Standard" and "Recycling".

Thank you for your cooperation.

All the best,
Petar Mladenov
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
0
Florian
Top achievements
Rank 1
answered on 18 Nov 2010, 02:55 PM
Hi,

Unfortunately it's even not working in Recycling or Standard mode,
I think the "reclaiming" of unused objects only happens later.

I have a List of about 400 root nodes with approximately 4-8 Childrens each.
In Hierarchical it crashes every time,
In Recycling it's crashing at about the 15's closing,
In Standart it takes much longer, but it's happening nevertheless :(

Regards
Florian
0
Petar Mladenov
Telerik team
answered on 18 Nov 2010, 04:05 PM
Hello Florian,

Thank you for your efforts and involvement in the issue. We have some good news for you. We managed to fix this bug this afternoon and it will be included in the internal build that will be released tomorrow.

Thank you for your feedback again.

Sincerely yours,
Petar Mladenov
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
Tags
TreeView
Asked by
Ram Prasad
Top achievements
Rank 1
Answers by
Miroslav
Telerik team
Florian
Top achievements
Rank 1
Petar Mladenov
Telerik team
Share this question
or