Hi,
With MessageTester, when sending a message for a selected camera item in Admin Client works fine, but the same in SC crashes.
Using XProtect 2021 R1 with 2020 R3 SDK
The software built and using sendmessage ( EnvironmentManager.Instance.SendMessage(new VideoOS.Platform.Messaging.Message(MessageId.Control.StartRecordingCommand), m_currentCamItem.FQID); ) running in SC now starts crashing.
************** Outer Exception **************Exception type:System.NullReferenceException
Exception message:Object reference not set to an instance of an object.
Exception source:VideoOS.Shared
Exception Target Site: b__1
at VideoOS.Shared.ServerAPI.WCF.ServerApiSvcDecorator.<>c__DisplayClass189_0.b__1(Exception exception, Boolean isCanceled)
at VideoOS.Shared.ServerAPI.WCF.ServerCommandServiceManager.d__6.MoveNext()
-– End of stack trace from previous location where exception was thrown —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at VideoOS.Shared.ServerAPI.WCF.ServerApiSvcDecorator.d__307.MoveNext()
-– End of stack trace from previous location where exception was thrown —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at VideoOS.Shared.ServerAPI.WCF.ServerApiSvcDecorator.d__189.MoveNext()
-– End of stack trace from previous location where exception was thrown —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
************** System Info **************
Date and time: 8/20/2021 4:41:26 AM
Machine Name: DESKTOP-99MK735
Processors count: 4
OS version: Microsoft Windows NT 6.2.9200.0
64 bit OS: True
64 bit process: True
IP address: fe80::a40e:e24b:2059:76de%31 (DESKTOP-99MK735)
Current user: DESKTOP-99MK735\vegadev7
awaiting an earlier response.
Thanks,
Vikas



