为什么Appdomain.Unload在我的触摸板上失败 [英] Why Appdomain.Unload failing in my touchpad

查看:88
本文介绍了为什么Appdomain.Unload在我的触摸板上失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了一个应用程序,它创建了一个新的appdomain来执行耗时/内存消耗的过程,一旦完成,它将卸载appDomain.

I have created an application, it creates a new appdomain to perform time/Memory consuming process, once it completes, it will unload the appDomain.

这在我的笔记本电脑上可以正常工作,但是当我在"touchPad"中运行相同的应用程序时,卸载应用程序域失败.

This is working fine in my laptop, but when i run the same application in my "touchPad", unload appdomain fails.

它在卸载appdomain时给出错误". (异常结果:0x80131015)

it gives "Error while unloading appdomain. (exception from hresult: 0x80131015)

推荐答案

我已经创建了一个应用程序,它创建了一个新的appdomain来执行耗时/消耗内存的过程,一旦完成,它将卸载appDomain.

I have created an application, it creates a new appdomain to perform time/Memory consuming process, once it completes, it will unload the appDomain.

这在我的笔记本电脑上可以正常工作,但是当我在"touchPad"中运行相同的应用程序时,卸载应用程序域失败.

This is working fine in my laptop, but when i run the same application in my "touchPad", unload appdomain fails.

它在卸载appdomain时给出错误". (异常结果:0x80131015)

it gives "Error while unloading appdomain. (exception from hresult: 0x80131015)

由于您没有在应用程序中发布所有代码(即使您拥有该代码也不意味着有人可以检测到该问题),那么我建议您尝试使用来查找与您的代码类似的问题搜索引擎,如果您发现一个 得到答案,然后查看答案是否对您有帮助.显然,可能会有各种问题导致这种情况发生,例如"".当您被卡在执行不可中断的阻塞操作的非托管代码中时,确实会发生这种类型的异常. 等待本机套接字选择就是这种情况.如果您的Dll确实导致套接字连接,请确保在卸载AppDomain之前先将其关闭.或"这是一个

Since you didn't post all of the code in your application (and even if you had that doesn't mean somebody could detect the problem) then I would suggest you attempt to find a similar issue to yours using a search engine and if you find one that is answered then see if the answer assists you. As apparently there could be various issues why this occurs such as "This type of exception does happen when you are stuck inside unmanaged code which performs an uninterruptable blocking operation. Waiting for a native socket select would be such a case. If your Dll does cause socket connections make sure you close them before they your unload your AppDomain" or "This is a reported Microsoft bug. There is a workaround for it - to call reportViewer.LocalReport.ReleaseSandboxAppDomain() method before closing the parent form" when using reportviewer.

Google搜索来自hresult的异常:0x80131015"


这篇关于为什么Appdomain.Unload在我的触摸板上失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆