Smart Client Exception with my own AlarmPreview plugin...

Hi All.

I have developed a Smart Client MIP plugin. In partciular, I have developed my own AlarmPreview plugin. After upgrade to Milestone 2020R2, “sometimes”, after recevied the first alarm in Alarm List, my AlarmPreview custom plugin is loaded and the attached exception is shown. The exception is:

************** Outer Exception **************

Exception type: System.NullReferenceException

Exception Message: Reference to an object not set to an object instance.

Exception source: VideoOS.RemoteClient.Plugin.Map

Exception target site: <_commThread_GetPlugInItemChangesEvent> b__0

in VideoOS.RemoteClient.Plugin.Map.Windows.ElementSelection. <> c__DisplayClass66_0. <_commThread_GetPlugInItemChangesEvent> b__0 ()

in System.Windows.Threading.ExceptionWrapper.InternalRealCall (Delegate callback, Object args, Int32 numArgs)

in System.Windows.Threading.ExceptionWrapper.TryCatchWhen (Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

************** System Info **************

Date and time: 07/11/2020 00:05:52

Machine name: LAPTOP-D2ALFCQR

Processor count: 4

OS version: Microsoft Windows NT 6.2.9200.0

64-bit OS: True

Process 64-bit: True

IP address: fe80 :: 4c54: 4e59: ddfb: 1970% 15 (LAPTOP-D2ALFCQR)

Current user: LAPTOP-D2ALFCQR \ l.dellamonica

Thanks.

Ciao.

Gigi

I was sure that problem depends by my own AlalrmPreview plugin. But exception is fired also without my own plugin. I suppose that exception was in some Map component (items on map are custom and derived by SensoMapItem…). So I thin that problem maybe can be on some missing properties when I create MapItems.

Someone can help me to better undestand exception reason ?

Thanks,

Gigi

With 2019R3 works fine. Can be some compatiblity issue with Map sensor item and Smart Client into 2020R2 ?

Thanks.

Gigi

Milestone Development will start an investigation.