Fix The thread xxx has exited with code 259 (…
2018-06-23 22:25:19来源:未知 阅读 ()
When run the test case in VS2013, you may encounter below problem
After test case end, it will show below message infintely no matter how long you wait, test does not finish
The thread 0x23a4 has exited with code 259 (0×103).
The thread 0×2884 has exited with code 259 (0×103).
The thread 0x27ec has exited with code 259 (0×103).
The thread 0×1978 has exited with code 259 (0×103).
The thread 0×1534 has exited with code 259 (0×103).
The thread 0x1ad8 has exited with code 259 (0×103).
The thread 0×2938 has exited with code 259 (0×103).
The thread 0x22c8 has exited with code 259 (0×103).
From MSDN Documentation:
Remarks
This function returns immediately. If the specified thread has not terminated and the function succeeds, the status returned is STILL_ACTIVE. If the thread has terminated and the function succeeds, the status returned is one of the following values: The exit value specified in the ExitThread or TerminateThread function. The return value from the thread function. The exit value of the thread’s process. Important The GetExitCodeThread function returns a valid error code defined by the application only after the thread terminates. Therefore, an application should not use STILL_ACTIVE (259) as an error code. If a thread returns STILL_ACTIVE (259) as an error code, applications that test for this value could interpret it to mean that the thread is still running and continue to test for the completion of the thread after the thread has terminated, which could put the application into an infinite loop.
So basically it’s still checking current thread from time to time.
Is there any solution to resolve and fix this issue, problem.
本博客已搬家至: http://www.kai-zhou.com, 其他博客已停止更新,欢迎访问:Fix The thread xxx has exited with code 259 (0×103) 查看文章的最新版本,获得解决办法.
标签:
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有
上一篇:c#资料
下一篇:C#基础---委托的使用
- JavaScript中变量声明效率问题 2019-08-14
- js中常见继承方式 2019-04-30
- 转:超级好用的流程图js框架 2019-04-18
- js toFixed()方法的坑 2019-04-18
- 关于使用toFixed()函数时报错"toFixed() is not a 2019-01-01
IDC资讯: 主机资讯 注册资讯 托管资讯 vps资讯 网站建设
网站运营: 建站经验 策划盈利 搜索优化 网站推广 免费资源
网络编程: Asp.Net编程 Asp编程 Php编程 Xml编程 Access Mssql Mysql 其它
服务器技术: Web服务器 Ftp服务器 Mail服务器 Dns服务器 安全防护
软件技巧: 其它软件 Word Excel Powerpoint Ghost Vista QQ空间 QQ FlashGet 迅雷
网页制作: FrontPages Dreamweaver Javascript css photoshop fireworks Flash