使用Qt创建线程后,大概50秒内,快捷键:WIN + E无效,并且使用此快捷键后,几乎所有WIN快捷键无法使用,任务栏也不可使用;也无法通过【网上邻居属性】或者【本地连接右键】打开网络连接。
如果在50秒内,线程运行的run函数运行完毕,或者终止程序,则全部回复正常。请问有无办法解决。
WINDOWS XP
VS 2005
代码:
#include "stdafx.h"
#include "windows.h"
#include "qthread.h"
class testQt : public QThread
{
public:
void run();
};
void testQt::run()
{
while(1)
{
Sleep(600000);
}
}
int _tmain(int argc, _TCHAR* argv[])
{
testQt *pTest = new testQt();
if(pTest)
{
pTest->start();
}
while(1)
{
Sleep(600000);
}
return 0;
}