Exception when changing focus between Smart Client windows

We have a SmartClient with a MIP-Plugin. The Smart client has 2 Windows with vaild FQIDs

Server:SC:localhost Id:00000000-0000-0000-0000-000000000000, ObjectId:15da80d4-7595-431f-9866-674d2b80acc5, Type:15da80d4-7595-431f-9866-674d2b80acc5

Server:SC:localhost Id:00000000-0000-0000-0000-000000000000, ObjectId:730ffaeb-2516-4e5f-90ad-cce2d82f9028, Type:15da80d4-7595-431f-9866-674d2b80acc5

We use this command:

MultiWindowCommandData data = new MultiWindowCommandData();

data.Window = ;

data.MultiWindowCommand = “SelectWindow”;

ClientControl.Instance.CallOnUiThread(() => EnvironmentManager.Instance.SendMessage(new VideoOS.Platform.Messaging.Message(MessageId.SmartClient.MultiWindowCommand, data), null, null));

Newer SDKs throw this exception (this command worked some SDK versions ago!):

Ausnahmetyp:System.NullReferenceException

Ausnahmenachricht:Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.

Ausnahmequelle:VideoOS.RemoteClient.Application

Ausnahme-Zielseite: SelectWindow

bei VideoOS.RemoteClient.Application.Controllers.MultiWindowController.MultiWindowController.SelectWindow(Guid windowId)

bei VideoOS.RemoteClient.Application.MIP.Manager.MessageManager.MultiWindowCommandHandler(Message message, FQID dest, FQID source)

We have no idea how to handle this with the actual SDK version.

Please tell me; which version is the Smart Client you are using? Which version is the MIP SDK you are using building the plugin?

At the moment we use the client and SDK 2023R1.

We just tried 2023R3 Client and SDK, no we have no more exceptions, but the window doesn’t change…

I am sorry to say that we haven’t had much progress. Please elaborate on how we can reproduce this in the MIlestone test lab.

The Smart Client View and Window tool sample, on the Multi Window tab, has the “SelectWindow” commando, I wonder if you can reproduce the issue using the sample and describe what you do?

Alternatively; maybe you can implement a minimal test plugin, share the source code and describe how to reproduce the issue using the test plugin?

-

https://doc.developer.milestonesys.com/html/index.html?base=samples/pluginsamples/scviewandwindow/readme.html&tree=tree_1.html

One thing you might try before answering.. We might have a patch, not sure if it fits but I hope I can persuade you to try.

Please see https://developer.milestonesys.com/s/article/XProtect-Smart-Client-2023-R3-cumulative-patch-installers

Please apply the patch and let us know if it solves the issue for you.

We were in the end able to reproduce the issue.

A fix will be in the Smart Client 2024R1 when it releases later this year.