SmartClient plugin problem, inconsistent behaviour

Dear Sir/Madam,

We have a SmartClient workspace plugin.

We use a tabControl inside PluginsWorkSpaceViewItemUserControl.

Inside each tabPage, we have a pictureBox to draw graphics.

In one of pictureBox/tabPage, we have several smaller pictureBox to display image.

The workspace plugin works perfect when we drag the workspace tab out of SmartClient to be a separate window.

Closed the separated workspace window and drag the workspace tab out again, it still works perfect.

The problem is when we click the workspace tab and leave it displays inside SmartClient window.

The plugin’s PluginsWorkSpaceViewItemUserControl_Load hits an exception:

Index was out of range. Must be non-negative and less than the size of the collection.

Parameter name: index

When this exception happens, EnvironmentManager.Instance.Log does not capture any log information from PluginsWorkSpaceViewItemUserControl_Load.

The log information from PluginsWorkSpaceViewItemUserControl_Load is captured properly when it works outside SmartClient window.

This problem happens at all 3 version we have which are 2019 R1, 2020R2 and 2020 R3.

Please advise how to fix this problem.

Meanwhile, please advise us how to disable the click and doubleClick to this workspace tab inside SmartClient window.

Thus, only allow the workspace tab to be dragged out from SmartClient window.

Thank you.

Regards,

Jinmin

I have found the root of the problem.

It is the execution sequence of Init() and PluginsWorkSpaceViewItemUserControl_Load.

When the workspace is within SmartClient, PluginsWorkSpaceViewItemUserControl_Load runs first, then Init().

While drag out the workspace, Init() runs first, then PluginsWorkSpaceViewItemUserControl_Load.

To make my workspace works both inside and outside.

I have to stop use Init() for the timebeing and put thing all to the form loading.

Please advise your guys will do anything about this or not. Thank you.

Regards,

Jinmin

I am sorry for the delayed response, but we have discussed with Milestone Development. Milestone Development will start an investigation. Meanwhile, please take your workaround.

We are ready for a hotfix for you. Please access here and download it -

https://supportcommunity.milestonesys.com/s/article/XProtect-Smart-Client-2020-R3-cumulative-patch-installers?language=en_US

I am sorry to confuse you, but let me clarify.

The changes in the cumulative patch were rolled back as Milestone Development found some other issues; and so the developers will search for some other solution.

So the latest cumulative patch that we have in the KB article, is the one with the rolled-back changes and does *not* include a solution to the issue.

Let me get back to you when I receive a news from Milestone Development.