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 'volumeBar' accessed from a thread other than the thread it was created on. in User32.SendMessageW (IHandle hWnd, WM Msg, IntPtr wParam, IntPtr lParam) #5

Closed Silverdimond closed 2 years ago

Silverdimond commented 2 years ago

Version 1.0.0.2(1.0.0.2)

Stacktrace

Interop.User32.SendMessageW(IHandle hWnd, WM Msg, IntPtr wParam, IntPtr lParam);Interop

SilverAudioPlayer.Form1.MusicStatusInterface_GetVolume() in D:\Users\USER\source\repos\SilverAudioPlayer\SilverAudioPlayer.Winforms\Form1.cs:line 59;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 239;SilverAudioPlayer.CAD

Reason

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

Link to App Center