sirWest / AudioSwitch

Switch between default audio input or output + change volume
Apache License 2.0
1.08k stars 87 forks source link

System Error #123

Open tschierschno opened 7 years ago

tschierschno commented 7 years ago

When using the feature to hide devices from the switch list on starting the app next time it throws an error:

System.ArgumentOutOfRangeException: InvalidArgument=Value of '0' is not valid for 'index'. Parameter name: index at System.Windows.Forms.ListView.SelectedListViewItemCollection.get_Item(Int32 index) at AudioSwitch.Forms.FormSwitcher.b__29_0(CDevice x) at System.Collections.Generic.List1.Find(Predicate1 match) at AudioSwitch.Forms.FormSwitcher.SetTrayIcons() at AudioSwitch.Forms.FormSwitcher..ctor() at AudioSwitch.Classes.Program.Main(String[] args)

This is the case in both 2.1.3 and 2.1.5.