[.NET] thread跟event的問題
在ui thread裡面有一個收事件的function,
這個事件頻率很高,會讓我的ui thread卡住,
想產生一個新thread專門處理這個收事件的funtion,
new thread(address of xxx)
|
___> 沒辦法放 sub func() handles 事件
不太清楚該怎麼寫比較好。
目前我是把 dim withevents 事件 as new 事件物件由ui thread裡面
放到新產生的thread,這樣ui thread不會被卡住,但我不確定這樣的寫法
合不合理,請給點意見,謝謝。
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 218.160.178.91