We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Destination Array was not long enough - error

Thread ID:





62984 Jun 26,2007 05:56 PM UTC Jun 27,2007 11:06 AM UTC WinForms 1
Tags: Tools
Mark Atkinson
Asked On June 26, 2007 05:56 PM UTC

I'm getting an error when I call RemoveRange on a TreeNodeAdvCollection. I've recently upgraded to the 1.5 libraries and didn't get this error when I was using 1.4.

The TreeNodeAdvCollection will have, for example, 5 nodes and I call the method like this:

treeAdvNodeCollection.RemoveRange (0, 2);

...which gives me this error message and stack trace:
String Message = "Destination array was not long enough. Check destIndex and length, and the array's lower bounds. at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable)
at System.Collections.ArrayList.CopyTo(Array array, Int32 arrayIndex)
at Syncfusion.Collections.ArrayListExt.RemoveRange(Int32 index, Int32 count)

Golda Rebecal [Syncfusion]
Replied On June 27, 2007 11:06 AM UTC

Hi Mark,

I am able to see the issue of exception being thrown when the RemoveRange method of TreeNodeAdvCollection is used.

We have created a Direct-Trac incident with the ID #35192 in this regard. Could you please follow up this incident in order to get more details regarding the fix?

Thanks for your interest in Syncfusion products.

Best regards,


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon