secs4net icon indicating copy to clipboard operation
secs4net copied to clipboard

NullReferenceException

Open zhuxuan1997 opened this issue 3 years ago • 0 comments

Describe the bug NullReferenceException To Reproduce Steps to reproduce the behavior:

  1. start SecsDevice and DeviceWorkerService two projects simultaneously in VS
  2. after the main form appear, make the break point at the MessageHeader.cs file EncodeTo method buffer.Advance(10) (49 line)
  3. press F11 to run step by step
  4. in the HsmsConnection.cs file StopPipeDecoder method, 324 line will occur a NullReferenceException bug

Expected behavior A clear and concise description of what you expected to happen.

Desktop (please complete the following information): Windows 10, VS2022

Additional context Add any other context about the problem here.

zhuxuan1997 avatar Dec 29 '21 08:12 zhuxuan1997