getmusicbee.com

Support => Bug Reports => Topic started by: StefanIvanovic on March 20, 2017, 11:06:25 PM

Title: Error when clearing list before track
Post by: StefanIvanovic on March 20, 2017, 11:06:25 PM
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)
Title: Re: Error when clearing list before track
Post by: Steven on March 21, 2017, 07:29:37 PM
i cant reproduce this but i have put in handling for the error that occured

http://musicbee.niblseed.com/V3_1/MusicBee31_Patched.zip
Title: Re: Error when clearing list before track
Post by: StefanIvanovic on March 21, 2017, 10:13:32 PM
No more error message, but it is still broken, at least for me. It is clearing more than it should.

(http://i.imgur.com/oWEtByV.gif)
Title: Re: Error when clearing list before track
Post by: Steven on March 21, 2017, 10:43:00 PM
now i can see what is happening, it should be properly fixed for the next v3.1 update
Title: Re: Error when clearing list before track
Post by: Steven on March 22, 2017, 10:47:56 PM
http://musicbee.niblseed.com/V3_1/MusicBee31_Patched.zip