thecodrr/BreadPlayer

Different thread error when loading music.

thecodrr opened this issue · 0 comments

https://sentry.io/abdullah-atta/breadplayer/issues/409142211/

This is related to the ObservableCollection used in initializing the Equalizer. Should convert it to TSOC.

Message: An error occured while loading music. Action {action} 

Exception:System.Exception: The application called an interface that was marshalled for a different thread. (Excep_FromHResult 0x8001010E)
   at SharedLibrary!<BaseAddress>+0x3f7d77
   at SharedLibrary!<BaseAddress>+0x568071
   at SharedLibrary!<BaseAddress>+0x3ca755
   at SharedLibrary!<BaseAddress>+0x3ca68f
   at SharedLibrary!<BaseAddress>+0x3d77dd
   at System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, Collections.Specialized.NotifyCollectionChangedEventArgs e)
   at System.Collections.ObjectModel.ObservableCollection<System.Object>.OnCollectionChanged(Collections.Specialized.NotifyCollectionChangedEventArgs e)
   at System.Collections.ObjectModel.ObservableCollection<System.Object>.InsertItem(Int32 index, Object item)
   at BreadPlayer.Core.Engines.BASSEngine.BassEqualizer.Init(Boolean setToDefaultValues)
   at BreadPlayer.Core.Engines.BASSEngine.BassEqualizer.ReInit(Int32 coreHandle)
   at BreadPlayer!<BaseAddress>+0x1f6413f