Author Topic: Error when clearing list before track  (Read 432 times)

StefanIvanovic

  • Jr. Member
  • **
  • Posts: 60
On right_click>List>Clear list before selected there is error if there is track playing somewhere above selected track. 


Code
MusicBee v3.1.6287.39764 (Win10.0), 20 mar 2017 22.50:

System.ArgumentException: Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.List`1.RemoveRange(Int32 index, Int32 count)
   at MusicBee.MusicBeeApplication.#=qT9WKroCvG4Q4ffMCfWSmDA==.#=qcisg_ol1q$WY41vyMc9loXI9LTjToxb3BawM301gb$s=()
   at MusicBee.MusicBeeApplication.#=qT9WKroCvG4Q4ffMCfWSmDA==.#=qxdt2AXVGR9z7B8WF6oWi1A==(ApplicationCommand #=q5giV43wp$vHpD92rr7f1yA==, Object #=qddt0grI9DZq1huraj7PfjA==, IList`1 #=q8QjKXgCNodxledfexs1D7w==)
   at #=qRU8wim$zahEKdULdnlX7Lq7RxRQIkbjX9AXp5p8bv20=.OnClick(EventArgs #=qDrb0PjaOupHSHuynqfdZzw==)
   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(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 26329
i cant reproduce this but i have put in handling for the error that occured

http://musicbee.niblseed.com/V3_1/MusicBee31_Patched.zip
Last Edit: March 21, 2017, 08:34:46 PM by Steven

StefanIvanovic

  • Jr. Member
  • **
  • Posts: 60
No more error message, but it is still broken, at least for me. It is clearing more than it should.


Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 26329
now i can see what is happening, it should be properly fixed for the next v3.1 update