【问题标题】:After port app WP7 to WP8 throws exception "The thread has exited...""将应用程序 WP7 移植到 WP8 后引发异常“线程已退出......”
【发布时间】:2014-04-10 23:37:04
【问题描述】:

将应用程序 WP7 移植到 WP8 后在输出中引发异常:

The thread 0xaac has exited with code 259 (0x103).
The thread 0xabc has exited with code 259 (0x103).
The thread 0xad8 has exited with code 259 (0x103).
The thread 0xb04 has exited with code 259 (0x103).
The thread 0xb0c has exited with code 259 (0x103).

但在模拟器中一切都很好。
为什么会出现这些异常?
这可以在真实设备上使用吗?

注意:我使用WebClient

【问题讨论】:

    标签: windows-phone-7 windows-phone-8


    【解决方案1】:

    这看起来不像是异常,而是线程退出代码(我猜可能是由于 ThreadPool 线程被结束)。我在“调试”窗口中看到了这些额外的行,并且我的应用运行正常。

    【讨论】:

    • 是的,我的应用程序运行良好,但我只能在模拟器上测试它。你在真机上测试过吗?
    • 我刚刚检查了错误代码 here 。 259 (0x103) 表示没有更多数据可用。我的应用程序运行正常,但仍然想知道里面发生了什么。
    • @VitaliiVasylenko 看到这个SO thread 后我认为数字 259 应该被解释为退出代码。根据GetExitCodeThread文档,退出代码259意味着线程仍然处于活动状态——这是合理的,因为线程属于线程池。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-04-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多