Author Topic: DataLinkLayer_DataReceived NullReferenceException  (Read 1038 times)

WellsCPak

  • Newbie
  • *
  • Posts: 28
    • View Profile
DataLinkLayer_DataReceived NullReferenceException
« on: July 11, 2014, 04:42:02 PM »
I'm having these errors intermittently, and I guess I'm not sure how to troubleshoot the cause of it, or how to prevent it. I would really appreciate any insight or tips on how to investigate this further. Attached is a screenshot of the error I'm getting.
Thanks!

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5269
    • View Profile
    • AdvancedHMI
Re: DataLinkLayer_DataReceived NullReferenceException
« Reply #1 on: July 11, 2014, 06:36:37 PM »
What version are you using?

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5269
    • View Profile
    • AdvancedHMI
Re: DataLinkLayer_DataReceived NullReferenceException
« Reply #2 on: July 13, 2014, 09:57:59 AM »
Insert this line of code into the first line of the subroutine:

        If (TNS1 Is Nothing) Or (e Is Nothing) Then Exit Sub