BinaryConstruct/Terraria-Map-Editor — Issue #146: I can't use the TEdit!
Author: oxlivin
Created: 2011-10-12 11:50:58+00:00
State: open

I just downloaded the latest version 2.0.9.1 and started, loaded a larger map that i have (that works on previous versions), and when i tried to use any tool like pencil... Boom, I have a crash...

Bellow is the content generated in the log.txt:

12/10/2011 08:45: Error - Exceção do tipo 'System.OutOfMemoryException' foi acionada.
em System.Object.MemberwiseClone()
em TEdit.Tools.History.HistoryManager.AddTileToBuffer(Int32 x, Int32 y, Tile& tile) na D:\Dev\_PROJECTS\Terraria\Terraria-Map-Editor\TEdit\Tools\History\HistoryManager.cs:linha 69
em TEdit.Tools.Tool.Brush.UpdateTile(TilePicker& tile, Int32& x, Int32& y, Int32& w) na D:\Dev\_PROJECTS\Terraria\Terraria-Map-Editor\TEdit\Tools\Tool\Brush.cs:linha 299
em TEdit.Tools.Tool.Brush.FillEllipseCentered(Int32 xc, Int32 yc, Int32 xr, Int32 yr, TilePicker& tile) na D:\Dev\_PROJECTS\Terraria\Terraria-Map-Editor\TEdit\Tools\Tool\Brush.cs:linha 365
em TEdit.Tools.Tool.Brush.DrawLine(PointInt32 endPoint) na D:\Dev\_PROJECTS\Terraria\Terraria-Map-Editor\TEdit\Tools\Tool\Brush.cs:linha 265
em TEdit.Tools.Tool.Brush.CheckDirectionandDraw(TileMouseEventArgs e) na D:\Dev\_PROJECTS\Terraria\Terraria-Map-Editor\TEdit\Tools\Tool\Brush.cs:linha 159
em TEdit.Tools.Tool.Brush.ReleaseTool(TileMouseEventArgs e) na D:\Dev\_PROJECTS\Terraria\Terraria-Map-Editor\TEdit\Tools\Tool\Brush.cs:linha 137
em TEdit.ViewModels.WorldViewModel.OnMouseUpPixel(TileMouseEventArgs e) na D:\Dev\_PROJECTS\Terraria\Terraria-Map-Editor\TEdit\ViewModels\WorldViewModel.cs:linha 674
em TEdit.Common.RelayCommand`1.Execute(Object parameter) na D:\Dev\_PROJECTS\Terraria\Terraria-Map-Editor\TEdit\Common\RelayCommand.cs:linha 69
em TEdit.Views.WorldImageView.ViewportMouseUp(Object sender, MouseButtonEventArgs e) na D:\Dev\_PROJECTS\Terraria\Terraria-Map-Editor\TEdit\Views\WorldImageView.xaml.cs:linha 115
em System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
em System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
em System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
em System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
em System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
em System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
em System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
em System.Windows.Input.InputManager.ProcessStagingArea()
em System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
em System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
em System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
em System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
em System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
em MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
em MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
em System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
em MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
em System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
em MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
em MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
em System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
em System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
em System.Windows.Application.RunDispatcher(Object ignore)
em System.Windows.Application.RunInternal(Window window)
em System.Windows.Application.Run(Window window)
em TEdit.App.Main() na D:\Dev\_PROJECTS\Terraria\Terraria-Map-Editor\TEdit\obj\x86\Release\App.g.cs:linha 0