Application crashes when clicking with the shift key in MapXtreme .NET

Products affected: MapXtreme .NET.


Load a Raster Layer, into a Desktop Application, then with the select tool enabled hold the shift key down, click on the map a couple of times and it will crash the application with an unhandled exception:

System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.Collections.CollectionBase.System.Collections.IList.get_Item(Int32 index)
at MapInfo.Engine.Selection.get_Item(Int32 index)
at MapInfo.Tools.MapTools.MapControlSelectToolStatus.Finish(mKeyListSet mKeyListSet, SelectionType mSelType)
at MapInfo.ToolsWrapper.MIToolStatusPassThrough.Finish(MIToolStatusPassThrough* , MIKeyListSet* pKeyListSet, SelectionType eSelType)
at MapInfo.ToolsWrapper.mMITool.MouseDown(Int32 x, Int32 y, Boolean bShift, Boolean bCtrl)
at MapInfo.Tools.MapTool.OnMouseDown(Object sender, MouseEventArgs mea)
at MapInfo.Tools.SelectPointMapTool.OnMouseDown(Object sender, MouseEventArgs mea)
at MapInfo.Tools.MapTools.MouseDownHandler(Object sender, MouseEventArgs mea)
at System.Windows.Forms.Control.OnMouseDown(MouseEventArgs e)
at MapInfo.Windows.Controls.MapControl.OnMouseDown(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at MapInfo.Windows.Controls.FeatureViewerControl.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


Bug MXT-9420.


UPDATED: March 5, 2020
This will be fixed in a future release of MapXtreme .NET.