I sometimes get a pop-up that crashes my game that says “Destination array was not long enough. Check destIndex and length, aand the array’s lower bounds.” This was followed by a string of text:
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.List1.ToArray() at SdlDotNet.Widgets.Label.Label_Paint(Object sender, EventArgs e) at SdlDotNet.Widgets.Widget.TriggerPaint() at SdlDotNet.Widgets.Widget.BlitToScreen(Surface destinationSurface, Rectangle sourceRectangle, Point location) at SdlDotNet.Widgets.Widget.BlitToScreen(Surface destinationSurface, Rectangle sourceRectangle) at SdlDotNet.Widgets.Widget.BlitToScreen(Surface destinationSurface) at SdlDotNet.Widgets.WidgetRenderer.UpdateWidget(Surface destinationBuffer, Widget widgetToUpdate, WidgetCollection childWidgets) at SdlDotNet.Widgets.ContainerWidget.UpdateWidget(Widget widget) at SdlDotNet.Widgets.ContainerWidget.CheckWidgets() at SdlDotNet.Widgets.ContainerWidget.BlitToScreen(Surface destinationSurface, Rectangle sourceRectangle, Point location) at SdlDotNet.Widgets.Widget.BlitToScreen(Surface destinationSurface, Rectangle sourceRectangle) at SdlDotNet.Widgets.Widget.BlitToScreen(Surface destinationSurface) at SdlDotNet.Widgets.ContainerWidget.UpdateBuffer(Boolean resetBackground) at SdlDotNet.Widgets.Panel.Panel_Paint(Object sender, EventArgs e) at SdlDotNet.Widgets.Widget.TriggerPaint() at SdlDotNet.Widgets.Widget.BlitToScreen(Surface destinationSurface, Rectangle sourceRectangle, Point location) at SdlDotNet.Widgets.ContainerWidget.BlitToScreen(Surface destinationSurface, Rectangle sourceRectangle, Point location) at SdlDotNet.Widgets.Widget.BlitToScreen(Surface destinationSurface, Rectangle sourceRectangle) at SdlDotNet.Widgets.Widget.BlitToScreen(Surface destinationSurface) at ?.BlitToScreen(Surface ) at SdlDotNet.Widgets.Screen.DrawWidgets(TickEventArgs e) at SdlDotNet.Widgets.WindowManager.DrawWindows(TickEventArgs e) at ??.(Object , TickEventArgs ) at System.EventHandler
1.Invoke(Object sender, TEventArgs e)
at SdlDotNet.Core.Events.OnTick(TickEventArgs e)
at SdlDotNet.Core.Events.ThreadTicker()
at SdlDotNet.Core.Events.Run()
at ??.()
at ??.()
at ??.(String[] )
at ??.(String[] )