阅读背景:

在一次处理大量数据时避免在窗口中使用“(无响应)”标签

来源:互联网 

I occasionally need to process a large amount of data from one package off the network, which takes sufficiently long that when the user tries to interact with the application windows adds the "(Not Responding)" string to the window title. I am aware this is because the processing is being done within a call to handle a message (some way up the stack) and therefore is blocking the message pump. I'm also aware the ideal way to deal with this is to process the data asynchronously in a separate thread so the pump can continue running, however this is a LARGE desktop application which is single threaded from top to toe and safely spinning this processing off is not feasible in our time frame.I occasionally need to process a large amount o




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: