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. Image for the cookie policy date
close icon

Tree dragging exception

Hi,
I am using syncfusion version 4.4.0.51 TreeViewAdv control on window form in a C# application.
I followed the sample code included in the essential suites getstarted guide to implement the dragdrop effect. However, I come across out of bound exception right after I click on some node on the tree and start to drag it. The exception goes as follows:

System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.Collections.ArrayList.get_Item(Int32 index)
at Syncfusion.Collections.ArrayListExt.get_Item(Int32 index)
at Syncfusion.Windows.Forms.Tools.TreeNodeAdvCollection.get_Item(Int32 index)
at Syncfusion.Windows.Forms.Tools.TreeViewAdv.GetSelectedNodesRectangle(TreeNodeAdv[] tnas)
at Syncfusion.Windows.Forms.Tools.TreeViewAdv.ExtractSelectedBoundsFromBmp(Bitmap bmp, TreeNodeAdv[] tnas)
at Syncfusion.Windows.Forms.Tools.TreeViewAdv.GetDraggedNodesBitmap()
at Syncfusion.Windows.Forms.Tools.TreeViewAdv.set_DragCueOn(Boolean value)
at Syncfusion.Windows.Forms.Tools.TreeViewAdv.OnGiveFeedback(GiveFeedbackEventArgs args)
at Syncfusion.Windows.Forms.Tools.TreeViewAdv.OnMouseMove(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseMove(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at Syncfusion.Windows.Forms.ScrollControl.WndProc(Message& msg)
at Syncfusion.Windows.Forms.Tools.TreeViewAdv.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
nunit.core
Assembly Version: 2.2.8.0
Win32 Version: 2.2.8.0
CodeBase: file:///D:/Program%20files/NUnit%20V2.2.8/bin/nunit.core.DLL
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
tsReportMgt
Assembly Version: 0.0.0.0
Win32 Version: 9.5.26.0
CodeBase: file:///D:/devel/9_5/Assemblies/tsReportMgt.DLL
----------------------------------------
nunit.framework
Assembly Version: 2.2.8.0
Win32 Version: 2.2.8.0
CodeBase: file:///D:/devel/9_5/Assemblies/nunit.framework.DLL
----------------------------------------
nunit.core.extensions
Assembly Version: 2.2.8.0
Win32 Version: 2.2.8.0
CodeBase: file:///D:/Program%20files/NUnit%20V2.2.8/bin/nunit.core.extensions.DLL
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Sage.LS1.CompositeControls
Assembly Version: 9.5.0.0
Win32 Version: 9.5.26.0
CodeBase: file:///D:/devel/9_5/Assemblies/Sage.LS1.CompositeControls.DLL
----------------------------------------
System.Data
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
Syncfusion.Tools.Windows
Assembly Version: 4.402.0.51
Win32 Version: 4.402.0.51
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Syncfusion.Tools.Windows/4.402.0.51__3d67ed1f87d44c89/Syncfusion.Tools.Windows.dll
----------------------------------------
Accessibility
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
Syncfusion.Shared.Base
Assembly Version: 4.402.0.51
Win32 Version: 4.402.0.51
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Syncfusion.Shared.Base/4.402.0.51__3d67ed1f87d44c89/Syncfusion.Shared.Base.dll
----------------------------------------
Syncfusion.Core
Assembly Version: 4.402.0.51
Win32 Version: 4.402.0.51
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Syncfusion.Core/4.402.0.51__632609b4d040f6b4/Syncfusion.Core.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:





When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.


Can anyone tell me what I missed here?

Thanks


3 Replies

J. J.Nagarajan Syncfusion Team August 9, 2007 10:23 PM UTC

Hi Faisal,

We regret for the inconvenience caused. I have tested this issue in v.4.4.0.51. I am afraid, I was not able to reproduce this issue in our browser sample TreeViewAdv DragDrop.

Could you please check the sample and let me know whether you are able to reproduce the issue in this sample?. It would be helpful if you provide a sample or modify the TreeViewAdv DragDrop sample to reproduce this issue. It will help us to resolve it as early as possible.

Thanks for using Essential Tools

Regards,
Nagaraj


PH Patrick Hampton August 31, 2007 07:31 PM UTC

Nagaraj

I have encountered the exact same issue in version 5.1.1.0. Has there been any progress on resolving this issue? I am working on creating a demo app that recreates the issue but do not have one yet. I will post it here if I am able to recreate it before a solution is found.

Thanks
Patrick

>Hi Faisal,

We regret for the inconvenience caused. I have tested this issue in v.4.4.0.51. I am afraid, I was not able to reproduce this issue in our browser sample TreeViewAdv DragDrop.

Could you please check the sample and let me know whether you are able to reproduce the issue in this sample?. It would be helpful if you provide a sample or modify the TreeViewAdv DragDrop sample to reproduce this issue. It will help us to resolve it as early as possible.

Thanks for using Essential Tools

Regards,
Nagaraj


J. J.Nagarajan Syncfusion Team September 5, 2007 12:56 AM UTC

Hi Faisal,

Thank you for your response.

I have tested this issue in v.5.1.1.0 and I was able to reproduce this issue. We have internally fixed this issue in v.5.2.0.16. Please open a new Direct trac incident (title with this forum link). We will provide you the download link of our latest release including this fix.

Kindly let us know if you need any further assistance.

Best regards,
Nagaraj

Loader.
Live Chat Icon For mobile
Up arrow icon