更新时间:2023-02-06 12:05:28
这个概念被设计破坏:每25毫秒轮询并运行消息队列是更糟糕的是死锁而不是糟糕的设计(对不起:垃圾)
COM操作应该在没有GUI交互的自己的线程中运行。如果您有新数据通过用户消息与GUI通信并且函数
PostThreadMessage http://msdn.microsoft.com/en-us/library/windows/desktop/ms644946(v = vs.85)的.aspx [ ^ ]
更新GUI。
this concept is broken by design: polling every 25 ms and running the message queue is more a dead lock than bad design (Sorry: crap)
The COM operations should run in a own thread WITHOUT GUI interaction. If you have new data communicate with the GUI via user message and the function
PostThreadMessage http://msdn.microsoft.com/en-us/library/windows/desktop/ms644946(v=vs.85).aspx[^]
to update the GUI.