Hi guys,
after 3 years of using AdvancedHMI I'm getting an error hard to crack:
- windows 10, vs 2019, VB advancedHMI 3.99
Eroor:
System.NullReferenceException
HResult=0x80004003
Message=Object reference not set to an instance of an object.
Source=MfgControl.AdvancedHMI.Drivers
StackTrace:
at MfgControl.AdvancedHMI.Drivers.CIP.CIPforCLX.a(CLXAddress A_0, Int64 A_1, Int32 A_2)
FROM
EthernetIPforCLXCom.vb
Protected Overrides Sub OnComError(ByVal e As MfgControl.AdvancedHMI.Drivers.Common.PlcComEventArgs)
'If m_SynchronizingObject IsNot Nothing AndAlso m_SynchronizingObject.InvokeRequired Then
If m_synchronizationContext IsNot Nothing Then
'Dim Parameters() As Object = {Me, e}
'm_SynchronizingObject.BeginInvoke(errorsd, Parameters)
m_synchronizationContext.Post(AddressOf ErrorReceivedSync, e)[/b]
Else
MyBase.OnComError(e)
End If
'End If
End Sub
It happens when the PLC is not connected or the cable breaks.
With the PLC working it's ok