1
Support Questions / Basic Button Crash (Version 3.9.9.24)
« on: May 16, 2020, 11:35:16 PM »
Hi Dears I an making a process demo and everything goes fine until my application began to crash in random way the following piece of code appear with the error, I am using vertion 3.9.9.24:
Private Sub ReleaseValue()
Try
Select Case m_OutputType
Case MfgControl.AdvancedHMI.Controls.OutputType.MomentarySet : m_ComComponent.Write(m_PLCAddressClick, 0)
Case MfgControl.AdvancedHMI.Controls.OutputType.MomentaryReset : m_ComComponent.Write(m_PLCAddressClick, 1)
End Select
Catch ex As MfgControl.AdvancedHMI.Drivers.Common.PLCDriverException
If ex.ErrorCode = 1808 Then
DisplayError("""" & m_PLCAddressClick & """ PLC Address not found")
Else
DisplayError(ex.Message)
End If
End Try
End Sub
When the error appear the IDE higligth the follow word m_ComComponent in the basic button file lines 469 and 470.
Would you help me to fix it ?
Thanks in advance !!
Private Sub ReleaseValue()
Try
Select Case m_OutputType
Case MfgControl.AdvancedHMI.Controls.OutputType.MomentarySet : m_ComComponent.Write(m_PLCAddressClick, 0)
Case MfgControl.AdvancedHMI.Controls.OutputType.MomentaryReset : m_ComComponent.Write(m_PLCAddressClick, 1)
End Select
Catch ex As MfgControl.AdvancedHMI.Drivers.Common.PLCDriverException
If ex.ErrorCode = 1808 Then
DisplayError("""" & m_PLCAddressClick & """ PLC Address not found")
Else
DisplayError(ex.Message)
End If
End Try
End Sub
When the error appear the IDE higligth the follow word m_ComComponent in the basic button file lines 469 and 470.
Would you help me to fix it ?
Thanks in advance !!