Skip to content

"System.OverflowException: La operación aritmética ha provocado un desbordamiento." when creating a new map #9

@MHeasell

Description

@MHeasell
System.OverflowException: La operación aritmética ha provocado un desbordamiento.
   at Mappy.Collections.Grid<T>..ctor(int width, int height) in C:\projects\mappy\Mappy\Collections\Grid.cs:line 21
   at Mappy.Data.MapTile..ctor(int width, int height) in C:\projects\mappy\Mappy\Data\MapTile.cs:line 24
   at Mappy.Services.MapLoadingService.CreateMap(int width, int height) in C:\projects\mappy\Mappy\Services\MapLoadingService.cs:line 29
   at Mappy.Services.Dispatcher.New(int width, int height) in C:\projects\mappy\Mappy\Services\Dispatcher.cs:line 771
   at Mappy.Services.Dispatcher.New() in C:\projects\mappy\Mappy\Services\Dispatcher.cs:line 203
   at Mappy.Models.MainFormViewModel.NewMenuItemClick() in C:\projects\mappy\Mappy\Models\MainFormViewModel.cs:line 180
   at Mappy.UI.Forms.MainForm.NewMenuItemClick(object sender, EventArgs e) in C:\projects\mappy\Mappy\UI\Forms\MainForm.cs:line 146
   at System.Windows.Forms.ToolStripItem.RaiseEvent(object key, EventArgs e)
   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(ref Message m, MouseButtons button, int clicks)
   at System.Windows.Forms.Control.WndProc(ref Message m)
   at System.Windows.Forms.ScrollableControl.WndProc(ref Message m)
   at System.Windows.Forms.ToolStrip.WndProc(ref Message m)
   at System.Windows.Forms.ToolStripDropDown.WndProc(ref Message m)
   at System.Windows.Forms.Control+ControlNativeWindow.OnMessage(ref Message m)
   at System.Windows.Forms.Control+ControlNativeWindow.WndProc(ref Message m)
   at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, int msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(ref MSG msg)
   at System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, int reason, int pvLoopData)
   at System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner(int reason, ApplicationContext context)
   at System.Windows.Forms.Application+ThreadContext.RunMessageLoop(int reason, ApplicationContext context)
   at System.Windows.Forms.Application.Run(Form mainForm)
   at Mappy.Program.Main() in C:\projects\mappy\Mappy\Program.cs:line 79

Looks like someone tried to make a really giant map :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions