Unable to connect to toolkit!

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?

“Unable to connect to toolkit!” is a message that means the exporter cannot get camera data, unfortunately there are many root causes, and it can be difficult or sometimes impossible to find the root cause for an incidence. Do you have observations or clarifications a little bit more about the error?

Also, can you verify with the Smart Client that there is recorded data for the camera that you can see in playback?