You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Arrrays are declared using magic numbers, which are not checked when iterating through them; It is resulting in out of bound errors which are caught later by TcOpen with the less helpful error message of: "PlcTask(xxx): Checkbounds: Index too high (n)"
Also Config is set to trigger this error by default as MaxKeymode is set to 4 while the array only has 3 elements.
Furthermore, if the code is called cyclically by mistake, it will cog up Visual Studio's error pipe and VS becomes unresponsive.
To Reproduce
Call Restore() or any of the add methods on any TcoControlZone with the wrong config.
Expected behavior
When the out of bounds error would occur the for loops are terminated and a specific error message reported via Messenger to dignostics.
Screenshots
The text was updated successfully, but these errors were encountered:
Describe the bug
Arrrays are declared using magic numbers, which are not checked when iterating through them; It is resulting in out of bound errors which are caught later by TcOpen with the less helpful error message of: "PlcTask(xxx): Checkbounds: Index too high (n)"
Also Config is set to trigger this error by default as MaxKeymode is set to 4 while the array only has 3 elements.
Furthermore, if the code is called cyclically by mistake, it will cog up Visual Studio's error pipe and VS becomes unresponsive.
To Reproduce
Call Restore() or any of the add methods on any TcoControlZone with the wrong config.
Expected behavior
When the out of bounds error would occur the for loops are terminated and a specific error message reported via Messenger to dignostics.
Screenshots
The text was updated successfully, but these errors were encountered: