Corsinvest / cv4ab-api-dotnet

API for accessing Allen-Bradley PLC data over Ethernet Windows/Linux .NET Core
GNU General Public License v3.0
45 stars 23 forks source link

AutoReadValue leads to Stack Overflow #10

Open MattCosturos opened 4 years ago

MattCosturos commented 4 years ago

AutoRead functionality leads to a stack overflow.

tag.Value Getter calls Read(). (Tag.cs line 113) Read() uses tag.Value (Tag.cs line 172) This is an endless loop.

Tag.CS - line 172 OldValue = DeepClone(Value);

You probably want to do OldValue = DeepClone(_value);