您的位置:首页 > 其它

The increment of remove and add live data item behavior

2011-02-28 09:35 423 查看
We did 2 tests by Rockwell Softerware Data Client and LiveDataControl in Form. The test is to add and remove some live data items, then watch increment of “Calls to AddItems” and “Calls to RemoveItems” by Diagnostics Counter Monitor.

The behavior is as following:

1. Rockwell Softerware Data Client

For “Calls to AddItems”

This increment is equal to your addItems time, not related with the item count in one time adding operation.

For example, if you add 2 items in one time, the increment of “Calls to AddItems” is 1.

For “Calls to RemoveItems”

The behavior is the same with “Calls to AddItems”

For example, if you remove 3 items in one time, the increment of “Calls to RemoveItems” is 1.

2. LiveDataControl in Form

For “Calls to AddItems”

This increment is equal to your addItems time, not related with the item count in one time adding operation.

For example, if you add 2 items in one time, the increment of “Calls to AddItems” is 1.

In debug environment, we can suspend it after the first item is added and before next is added, increment of “Calls to AddItems” is 2.

For “Calls to RemoveItems”

This increment is equal to the item count in one time adding operation.//here is strange

For example, if you remove 3 items in one time, the increment of “Calls to AddItems” is 3

Test Steps:

1. Configuration: add a liveDataControl on a Form, add server, group, Items on it. Check the "Calls to AddItems" and "RemoveItems" by Diagnotics Counter Monitor

2. Open the form, check the increment

3. Close the form, check the increment

We can also write pnuts code
to test it, the result is the same with 2.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐