Bug 1256 - Error while executing command: Undo
Summary: Error while executing command: Undo
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: Trunk
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2011-10-05 09:29 UTC by Mikayla Hutchinson [MSFT]
Modified: 2011-10-27 06:06 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Mikayla Hutchinson [MSFT] 2011-10-05 09:29:07 UTC
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: 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.Generic.Queue`1.ToArray()

   at Mono.TextEditor.Highlighting.SyntaxModeService.WaitUpdate(Document doc) in c:\Users\Michael\work\monodevelop\main\src\core\Mono.Texteditor\Mono.TextEditor.Highlighting\SyntaxModeService.cs:line 324

   at Mono.TextEditor.Document.Mono.TextEditor.IBuffer.Replace(Int32 offset, Int32 count, String value) in c:\Users\Michael\work\monodevelop\main\src\core\Mono.Texteditor\Mono.TextEditor\Document.cs:line 195

   at Mono.TextEditor.Document.Mono.TextEditor.IBuffer.Insert(Int32 offset, String text) in c:\Users\Michael\work\monodevelop\main\src\core\Mono.Texteditor\Mono.TextEditor\Document.cs:line 178

   at Mono.TextEditor.Document.UndoOperation.Undo(Document doc) in c:\Users\Michael\work\monodevelop\main\src\core\Mono.Texteditor\Mono.TextEditor\Document.cs:line 514

   at Mono.TextEditor.Document.Undo() in c:\Users\Michael\work\monodevelop\main\src\core\Mono.Texteditor\Mono.TextEditor\Document.cs:line 767

   at MonoDevelop.SourceEditor.SourceEditorView.Undo() in c:\Users\Michael\work\monodevelop\main\src\addins\MonoDevelop.SourceEditor2\MonoDevelop.SourceEditor\SourceEditorView.cs:line 1106

   at MonoDevelop.Ide.Gui.ViewCommandHandlers.OnUndo() in c:\Users\Michael\work\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Gui\ViewCommandHandlers.cs:line 115

   --- End of inner exception stack trace ---

   at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)

   at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)

   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)

   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

   at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)

   at MonoDevelop.Components.Commands.CommandHandlerInfo.Run(Object cmdTarget, Command cmd) in c:\Users\Michael\work\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Components.Commands\CommandManager.cs:line 1386

   at MonoDevelop.Components.Commands.CommandManager.<>c__DisplayClassb.<DispatchCommand>b__2() in c:\Users\Michael\work\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Components.Commands\CommandManager.cs:line 597

   at MonoDevelop.Components.Commands.CommandManager.DispatchCommand(Object commandId, Object dataItem, Object initialTarget, CommandSource source) in c:\Users\Michael\work\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Components.Commands\CommandManager.cs:line 614
Comment 1 Mike Krüger 2011-10-27 06:06:40 UTC
fixed.