thesilvercraft / SilverAudioPlayer

🧩🎧modular audio player
https://thesilvercraft.github.io/SilverAudioPlayer
GNU General Public License v3.0
9 stars 0 forks source link

Fix System.InvalidOperationException: Cross-thread operation not valid: Control 'Form1' accessed from a thread other than the thread it was created on. in Form1.RemoveTrack () (D:\Users\USER\source\repos\SilverAudioPlayer\SilverAudioPlayer.Winforms\Form1.cs:551) #3

Closed Silverdimond closed 2 years ago

Silverdimond commented 2 years ago

Version 1.0.0.2(1.0.0.2)

Stacktrace

SilverAudioPlayer.Form1.RemoveTrack() in D:\Users\USER\source\repos\SilverAudioPlayer\SilverAudioPlayer.Winforms\Form1.cs:line 551;SilverAudioPlayer

SilverAudioPlayer.Form1.HandleSongChanging(Song NextSong, Boolean resetsal) in D:\Users\USER\source\repos\SilverAudioPlayer\SilverAudioPlayer.Winforms\Form1.cs:line 608;SilverAudioPlayer

SilverAudioPlayer.Form1.MusicStatusInterface_Next(Object sender, EventArgs e) in D:\Users\USER\source\repos\SilverAudioPlayer\SilverAudioPlayer.Winforms\Form1.cs:line 104;SilverAudioPlayer

SilverAudioPlayer.CAD.CADMusicStatusInterface.CallbackMsgs(IntPtr wHwnd, Int32 wMsg, IntPtr wParam, IntPtr lParam) in D:\Users\USER\source\repos\SilverAudioPlayer\SilverAudioPlayer.CAD\Class1.cs:line 224;SilverAudioPlayer.CAD

Reason

System.InvalidOperationException: Cross-thread operation not valid: Control 'Form1' accessed from a thread other than the thread it was created on.

Link to App Center