Hi.
I think there are some problems in version 3391. For example, the code snippet below works without any problems. But sometimes this line gives errors. A code that works continuously with a timer. But sometimes it gives the error below. I bypassed the error with Try-Catch and it works properly again in the following runs.
In another part of the application, the value I assigned to the long variable is set to -2147483648 when the data window is set. This value is the lowest limit of the long variable. Most probably there is a problem with the long variable in version 3391. Somehow the long variable turns into the lowest value and naturally the problem I first mentioned above occurs.
Error : Invalid DataWindow row/column specified at line 134 in function of_portcheck of object n_network.
Datawindow columns
**** Script ****
long i, k
datetime ldt_logdate
datastore dw_port
....
...
For i = dw_port.RowCount() to 1 step -1
ldt_logdate = dw_port.GetItemDateTime(i,"logdate")
if ldt_logdate < ldt_olddate Then
dw_port.DeleteRow(i)
else
For k = 2 to 4
ll_ping[k] = dw_port.GetItemNumber(i,"ping"+string(k + 31399))
Next
...
...
...