Hi,
I have a strange issue where the same Site Item is loaded if I connect to a second Milestone system.
I used the MultiSiteStatusViewer (MIP SDK 2021 R2) application to confirm the issue.
I have 2 pcs on the same network. Each one with its own Milestone 2021 instance.
I run the MultiSiteStatusViewer on PC1 and connect to PC1’s Milestone. The site connects and the SiteItem is loaded correctly. Then I try to add PC2, but the SiteItem that is returned by the
“Item siteItem = VideoOS.Platform.SDK.Environment.LoadSiteItem(secureOnlyCheckBox.Checked, uri, _credentialCache);”
call returns PC1’s SiteItem.
If I then close the application and load PC2 first, then PC2 connects to Milestone and the SiteItem is loaded correctly. If I then try to add PC1, then PC2’s SiteItem is returned again for PC2’s ip.
It seems that the SDK environment is somehow keeping the first site it loads in memory, and doesn’t clear it? I tried to remove the server first and then loading the site item without success. Only when I close the application and open it again, I can load a new site item. (but always only one).
I attached a video that demonstrates this clearly.
Please notice the uri and PC names in the video.
PC1: 192.168.1.15 (JDM-DELL)
PC2: 192.168.1.2 (JDM-PC)