Hi,
private void Button_Click(object sender, RoutedEventArgs e){
...
Button button = (Button)sender;
FQID _FQID = button.Tag as FQID;
Item camera = Configuration.Instance.GetItem(_FQID);
BitmapVideoSource _bitmapVideoSource = new BitmapVideoSource(camera);
_bitmapVideoSource.Init();
...
}
_bitmapVideoSource.Init(); return an exception, but not always, only sometimes:
Unable to connect to toolkit!
in VideoOS.RemoteClient.Application.MIP.Manager.SCInternalCommandService.ToolkitConnectWithExceptionHandling(IPlaybackSourceToolkit toolkit, ISet`1 properties, ISet`1& availableProperties)
in VideoOS.RemoteClient.Application.MIP.Manager.SCInternalCommandService.ImageExporterConnect(FQID deviceFQID, Int32 width, Int32 height, Boolean keepAspectRatio, Boolean fillSpace, BitmapFormat format)
in VideoOS.Platform.Data.BitmapVideoSourceImplementer.<>c__DisplayClass3_0.b__0()
in VideoOS.Platform.Data.GenericVideoSource`1.InitInternal(Func`1 imageExporterConnect, Action onConnected)
in TestPlugin.Background.TestPluginBackgroundPlugin.Button_Click(Object sender, RoutedEventArgs e)
VideoOS.RemoteClient.Application
Can you help me?