|
先感謝kuolung大大的指導,讓我用VC++6.0開拓unmanaged code的視野。沒有kuolung大大像燈塔般的指引,還真的持續不下去。
新的程式讓我發現以前未曾注意的異常狀況,也就是當我每一秒或每二秒RefreshData時,
不時發生只有topicID, 卻沒有 eventData(retVal)的配對輸出的現象。
這種狀況是否就是所謂的掉 Tick?
以下是我的測試數據:只顯示異常部分
PropertyArray Size = 262
************** ConnectData **************
ConnectData == S_OK
RetVal = 10:23:18
ConnectData == S_OK
RetVal = 00:00:00
ConnectData == S_OK
RetVal = 2018.1116
ConnectData == S_OK
RetVal = 1 / 2200 / 4
下略
************** RefreshData **************
SafeArray dimensions = 2
1 Dim lBound = 0 , uBound = 1
2 Dim lBound = 0 , uBound = 3
正常 topicId與retVal成對輸出,略
************** RefreshData **************
SafeArray dimensions = 2
1 Dim lBound = 0 , uBound = 1
2 Dim lBound = 0 , uBound = 3
正常 topicId與retVal成對輸出,略
************** RefreshData **************
SafeArray dimensions = 2
1 Dim lBound = 0 , uBound = 1
2 Dim lBound = 0 , uBound = 261
正常 topicId與retVal成對輸出,略
11 12 , topicId = 7
13 14 , topicId = 8
15 16 , topicId = 9
正常 topicId與retVal成對輸出,略
27 28 , topicId = 15
29 30 , topicId = 16
31 32 , topicId = 17
33 34 , topicId = 18
35 36 , topicId = 19
正常 topicId與retVal成對輸出,略
41 42 , topicId = 22
43 44 , topicId = 23
45 46 , topicId = 24
47 48 , topicId = 25
49 50 , topicId = 26
正常 topicId與retVal成對輸出,略
55 56 , topicId = 29
57 58 , topicId = 30
59 60 , topicId = 31
正常 topicId與retVal成對輸出,略
69 70 , topicId = 36
71 72 , topicId = 37
73 74 , topicId = 38
75 76 , topicId = 39
77 78 , topicId = 40
資料太多,以下省略。 |
|