jkh404
jkh404
我将ModbusClient 用于多线程环境的时候,调用ModbusClient 的ReadHoldingRegisters 方法时,获取到的值有时候是错误的。 (en:When I use ModbusClient in a multi-threaded environment, I sometimes get the wrong value by calling ModbusClient's ReadHoldingRegisters method.) 错误的(The wrong):    正确的(The correct):...
 上面的图片是Visual Studio2019 Debug 调试运行时抛出的异常。出现的位置是EasyModbusTCP.NET项目的ModbusClient.cs的ReadHoldingRegisters 方法 注意:这个 BUG是偶尔发生的,按照以下说明操作可以大概率重现。 情景重现: 我的程序是具有掉线重连功能的,每隔一秒会检查是否断开连接,如果断开连接则调用 Connect() 重新连接。  当我启动我的程序,然后再`立刻`启动ModBus Tcp Server 监听端口,最后抛出了异常。 en: Visual Studio2019 Debug debuts an exception thrown at runtime. The location where...
我用的EasyModbusTCP.NET v5.6 当TCP服务器断开连接时,客户端并不能获取到反馈,依然能够读取和写入(显然这是错误的)。 不过,我查看EasyModbusTCP.NET 项目的 ModbusClient.cs 源代码后, 将Connected的代码改为以下代码即可得到正确的反馈。 ``` c# public bool Connected { get{ if (serialport != null) { return (serialport.IsOpen); } if (udpFlag & tcpClient != null) return...
**Version:** Stride 4.2.0.2282, Stride.CommunityToolkit 1.0.0-preview.48 **Body:** I have encountered a bug where memory usage continuously increases after using the AddProfiler method. Please refer to the attached image for details. **Operating...