BinaryConstruct/Terraria-Map-Editor — Issue #231: Crash when pasting big schematics 
Author: xelzio
Created: 2012-01-20 09:17:21+00:00
State: open

So, yea the editor crashes when pasting big schematics (that includes sprites)

01-20-2012 10:04 v3.1.12018.1256 Error - Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.ThrowHelper.ThrowArgumentOutOfRangeException()
at System.Collections.Generic.List`1.get_Item(Int32 index)
at TEditXNA.Terraria.Chest.Copy() in D:\DEV\CODE\GITHUB\Terraria\Terraria-Map-Editor\TEditXna\Terraria\Chest.cs:line 52
at TEditXna.Editor.Clipboard.ClipboardManager.PasteBufferIntoWorld(Vector2Int32 anchor) in D:\DEV\CODE\GITHUB\Terraria\Terraria-Map-Editor\TEditXna\Editor\Clipboard\ClipboardManager.cs:line 181
at TEditXna.Editor.Tools.PasteTool.PasteClipboard(Vector2Int32 anchor) in D:\DEV\CODE\GITHUB\Terraria\Terraria-Map-Editor\TEditXna\Editor\Tools\PasteTool.cs:line 44
at TEditXna.Editor.Tools.PasteTool.MouseDown(TileMouseState e) in D:\DEV\CODE\GITHUB\Terraria\Terraria-Map-Editor\TEditXna\Editor\Tools\PasteTool.cs:line 24
at TEditXna.ViewModel.WorldViewModel.MouseDownTile(TileMouseState e) in D:\DEV\CODE\GITHUB\Terraria\Terraria-Map-Editor\TEditXna\ViewModel\WorldViewModel.cs:line 333
at TEditXna.View.WorldRenderXna.xnaViewport_HwndLButtonDown(Object sender, HwndMouseEventArgs e) in D:\DEV\CODE\GITHUB\Terraria\Terraria-Map-Editor\TEditXna\View\WorldRenderXna.xaml.cs:line 716
at BCCL.UI.Xaml.XnaContentHost.GraphicsDeviceControl.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) in D:\DEV\CODE\GITHUB\BCCL\BCCL.Xna\UI\Xaml\XnaContentHost\GraphicsDeviceControl.cs:line 482
at System.Windows.Interop.HwndHost.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at System.Windows.Application.Run(Window window)
at TEditXna.App.Main() in D:\DEV\CODE\GITHUB\Terraria\Terraria-Map-Editor\TEditXna\obj\x86\Release\App.g.cs:line 0