本文介绍了可能的危险Application.DoEvents的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我已经在VB6中使用DoEvents来释放多任务并完成工作(例如comms). C#等效于Application.DoEvents,我想知道它是否被视为多核PC(以及Thread.Sleep())的不良做法.由于许多年前我在Windows 2000中仅使用VB6,所以我在网上搜索并发现了一些冲突的信息.

谢谢
Glenn

Hi,

I have used DoEvents in VB6 to free up multi-tasking and get stuff (like comms) done. The C# equlivalent is Application.DoEvents, I would like to know if it is viewed as bad practice with multi-core PC''s (along with Thread.Sleep()). As I have only used VB6 many moons ago in Windows 2000. I have searched the web and found some conflicting info.

Thanks
Glenn

推荐答案




这篇关于可能的危险Application.DoEvents的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-27 14:34