Meta.Vlc icon indicating copy to clipboard operation
Meta.Vlc copied to clipboard

thread access problem

Open xpachin opened this issue 7 years ago • 1 comments

Hi! i got this problem VERY often, when i execute the code could you please help?

System.InvalidOperationException occurred HResult=-2146233079 Message=El subproceso que realiza la llamada no puede obtener acceso a este objeto porque el propietario es otro subproceso. (wich means, more or less, The calling thread can not access this object because the owner is another thread) Source=WindowsBase StackTrace: en System.Windows.Threading.Dispatcher.VerifyAccess() en System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value) en System.Windows.Controls.Image.set_Source(ImageSource value) en Meta.Vlc.Wpf.ThreadSeparatedImage.<>c__DisplayClass15_0.<set_Source>b__0() en D:\Allware\Nuevos Proy...\Meta.Vlc.Wpf\ThreadSeparatedImage.cs:línea 72 InnerException: } edit: another one

StackTrace: en System.Windows.Threading.Dispatcher.VerifyAccess() en System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value) en System.Windows.Controls.Image.set_Source(ImageSource value) en Meta.Vlc.Wpf.ThreadSeparatedImage.<>c__DisplayClass15_0.<set_Source>b__0() en D:\Allware\Nuevos Proyectos\I...2\Meta.Vlc.Wpf\ThreadSeparatedImage.cs:línea 72 en System.Windows.Threading.DispatcherOperation.InvokeDelegateCore() en System.Windows.Threading.DispatcherOperation.InvokeImpl() --- Fin del seguimiento de la pila de la ubicación anterior donde se produjo la excepción --- en System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) en System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) en System.Windows.Threading.DispatcherOperation.Wait(TimeSpan timeout) en System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherOperation operation, CancellationToken cancellationToken, TimeSpan timeout) en System.Windows.Threading.Dispatcher.Invoke(Action callback, DispatcherPriority priority, CancellationToken cancellationToken, TimeSpan timeout) en System.Windows.Threading.Dispatcher.Invoke(Action callback) en Meta.Vlc.Wpf.ThreadSeparatedImage.set_Source(ImageSource value) en D:\Allware\Nuevos Proyectos\ITG...\Meta.Vlc.Wpf\ThreadSeparatedImage.cs:línea 72 en Meta.Vlc.Wpf.VlcPlayer.set_VideoSource(BitmapSource value) en D:\Allware\Nuevos Proyectos\ITG\codigo\CamarasControl2\CamarasControl2\Meta.Vlc.Wpf\VlcPlayer.Properties.cs:línea 401 en Meta.Vlc.Wpf.VlcPlayer.VideoLockCallback(IntPtr opaque, IntPtr& planes) en D:\Allware\Nuevos Proyectos\ITG\codigo\CamarasControl2\CamarasControl2\Meta.Vlc.Wpf\VlcPlayer.Events.cs:línea 297 InnerException:

xpachin avatar Jun 19 '17 16:06 xpachin

See this wiki https://github.com/higankanshi/Meta.Vlc/wiki/Use-VlcPlayer-with-other-controls

devkanro avatar Jun 20 '17 15:06 devkanro