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.
Unfortunately, activation email could not send to your email. Please try again.

Redo Undo

Thread ID:

Created:

Updated:

Platform:

Replies:

71731 Feb 11,2008 12:46 PM Apr 3,2008 06:22 AM Windows Forms 8
loading
Tags: Diagram
Shavit Roee
Asked On February 11, 2008 12:46 PM

Hello
I have a major problem with the Undo Redo mechanism.
I am adding a LineConnector to the diagram executing an undo command Redo command and then another undo results as the following bug ,
Doing the same thing with a Rect Works just fine.
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.



************** Exception Text **************
System.ArgumentOutOfRangeException: Insertion index was out of range. Must be non-negative and less than or equal to size.
Parameter name: index
at System.Collections.ArrayList.Insert(Int32 index, Object value)
at Syncfusion.Windows.Forms.Diagram.CollectionEx.InsertValue(Int32 index, Object value)
at Syncfusion.Windows.Forms.Diagram.CollectionEx.System.Collections.IList.Insert(Int32 index, Object value)
at Syncfusion.Windows.Forms.Diagram.CollectionModifyCommand.Undo()
at Syncfusion.Windows.Forms.Diagram.MacroCmd.Undo()
at Syncfusion.Windows.Forms.Diagram.HistoryManager.Undo()
at Studio.Design.Editors.Workflow.DiagramPresenter.UndoStack_WorkflowUndone(Object sender, UndoEventArgs e) in C:\e-Glue\Direct 7\Source\Direct 7.0\Studio\Infrastructure\Studio.Design.Editors.Workflow.Implementation\Presenter\DiagramPresenter.cs:line 301
at Studio.Dom.Undo.UndoStack.Undo() in C:\e-Glue\Direct 7\Source\Direct 7.0\Studio\Infrastructure\Studio.Dom\Undo\UndoStack.cs:line 150
at Studio.Shell.Library.ShellForm.OnEditUndo(Object sender, EventArgs e) in C:\e-Glue\Direct 7\Source\Direct 7.0\Studio\Shell\Studio.Shell.Library\ShellForm.cs:line 586
at Microsoft.Practices.CompositeUI.Commands.Command.OnExecuteAction(Object sender, EventArgs e) in C:\e-Glue\Direct 7\Source\Direct 7.0\Shared\CAB\CompositeUI\Commands\Command.cs:line 230
at Microsoft.Practices.CompositeUI.Commands.CommandAdapter.FireCommand() in C:\e-Glue\Direct 7\Source\Direct 7.0\Shared\CAB\CompositeUI\Commands\CommandAdapter.cs:line 123
at Infragistics.Practices.CompositeUI.WinForms.Commands.ToolBaseCommandAdapter.OnEventInvoked(Object sender, EventArgs e) in C:\e-Glue\Direct 7\Source\Direct 7.0\Shared\CAB\Infragistics.CompositeUI.WinForms\Commands\ToolBaseCommandAdapter.cs:line 68
at Infragistics.Win.UltraWinToolbars.ToolClickEventHandler.Invoke(Object sender, ToolClickEventArgs e)
at Infragistics.Win.UltraWinToolbars.UltraToolbarsManager.OnToolClick(ToolClickEventArgs e)
at Infragistics.Win.UltraWinToolbars.UltraToolbarsManager.FireEvent(ToolbarEventIds id, EventArgs e)
at Infragistics.Win.UltraWinToolbars.ToolBase.OnToolClick()
at Infragistics.Win.UltraWinToolbars.ButtonToolUIElement.DoClickProcessing(MouseEventArgs e)
at Infragistics.Win.UltraWinToolbars.ButtonToolUIElement.OnMouseUp(MouseEventArgs e)
at Infragistics.Win.ControlUIElementBase.ProcessMouseUpHelper(Object sender, MouseEventArgs e)
at Infragistics.Win.ControlUIElementBase.ProcessMouseUp(Object sender, MouseEventArgs e)
at Infragistics.Win.Utilities.ProcessEvent(Control control, ProcessEvent eventToProcess, EventArgs e)
at Infragistics.Win.UltraControlBase.OnMouseUp(MouseEventArgs e)
at Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.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)




Melba Winshia [Syncfusion]
Replied On February 13, 2008 04:44 AM

Hi Shavit,

Thank you for your interest in Syncfusion Products.

I am afraid that I was not able to reproduce this issue. I have tested this issue by adding LineConnector to the diagram with our latest version Essential Studio 2008 Volume 1. Please refer the below video clip:

http://www.syncfusion.com/support/user/uploads/TestVideo_7ea0a69b.zip

Please have a look at the above video clip and let me know if I am missing something.

Thanks,
Melba



Shavit Roee
Replied On February 14, 2008 06:52 AM

Hello Melba,
I have found the bug regarding the Undo/Redo, it took me a lot of time to figure it out, the problem has to do with a Node property "EnableCentralPort = false" which causes the exception. I think I also found a bug regarding the "HistoryManager.GetRedoDescriptions()" function that sometimes throws an exception.
Please run the example I am sending you to verify that I am correct
1. Add a line press undo, redo, undo it will cause a crash.
2. Unmark the remark on
string[] str = HistoryManagerRedoTransactionsNumber();
Add a line change its position 2-3 times and press undo then redo until the application crashes ;

Thanks,
Roee Shavit


>Hi Shavit,

Thank you for your interest in Syncfusion Products.

I am afraid that I was not able to reproduce this issue. I have tested this issue by adding LineConnector to the diagram with our latest version Essential Studio 2008 Volume 1. Please refer the below video clip:

http://www.syncfusion.com/support/user/uploads/TestVideo_7ea0a69b.zip

Please have a look at the above video clip and let me know if I am missing something.

Thanks,
Melba






syncfusion.zip

Administrator [Syncfusion]
Replied On February 19, 2008 06:49 AM

Hi Shavit,

I regret for the delayed response.

I was not able to find sample with this zipped file (syncfusion.zip) and a word document is only present inside this zipped file. Could you please provide a working sample in which this issue occurs, so that we could analyze this issue further and sort out the cause of this issue and provide you a solution?

Thanks,
Melba




shavit Roee
Replied On February 19, 2008 08:23 AM



>Hi Shavit,

I regret for the delayed response.

I was not able to find sample with this zipped file (syncfusion.zip) and a word document is only present inside this zipped file. Could you please provide a working sample in which this issue occurs, so that we could analyze this issue further and sort out the cause of this issue and provide you a solution?

Thanks,
Melba







ForMelba.zip

Roee Shavit
Replied On February 20, 2008 02:09 AM

Hello Melba
try to open the Formelba.zip
have a nice day



ForMelba.zip

Administrator [Syncfusion]
Replied On February 21, 2008 04:31 AM

Hi Shaveet

Thank you for your interest in Syncfusion Products.

The issues "Exception thrown on Undo/Redo Actions when EnableCentralPort=false" and "HistoryManager.GetRedoDescriptions() throws an Exception on Redo Operation" are suspected to be a defects and we have sent this to our development team for more analysis.
Sorry for the inconvinience.

Please let me know if you need any furthur assistance.

Regards,
Anupama



Administrator [Syncfusion]
Replied On February 27, 2008 05:50 AM

Hi Shaveet,

The issue of 'Exception thrown on Undo/Redo Actions when EnableCentralPort=false' has been confirmed as a defect and a defect report has been created. You can track the status of this defect in the following link:

http://www.syncfusion.com/support/issues/diagram/Default.aspx?ToDo=view&questId=9067

I will get back to you once this issue has been fixed.

Regards,
Manopriya


Administrator [Syncfusion]
Replied On April 3, 2008 06:22 AM

Hi Shaveet,

Thank you for your patience.

The issue of 'Exception thrown on Undo/Redo Actions when EnableCentralPort=false' has been fixed. The fix for this defect is available in our Development build v6.2.0.21.

Please refer to the below link for the weekly development build updates.
http://www.syncfusion.com/downloads/product/build.aspx

Please let me know if you have any questions.

Regards,
Manopriya


CONFIRMATION

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.

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.

;