本文介绍了如何理解AppDomain隔离提供的可靠性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对在MSDN中对AppDomain的描述感到困惑. [ ^ ]

说:
一个应用程序中的错误不会影响其他应用程序.由于类型安全代码不会导致内存故障,因此使用应用程序域可确保在一个域中运行的代码不会影响进程中的其他应用程序.

但是,无论代码运行在哪个AppDomain中,任何线程中任何未处理的异常都将导致整个过程崩溃.那么如何理解AppDomain提供的可靠性呢?

I got confused about the description of AppDomain in MSDN.[^]

It''s said:
Faults in one application cannot affect other applications. Because type-safe code cannot cause memory faults, using application domains ensures that code running in one domain cannot affect other applications in the process.

But any unhandled exception in any thread, no matter which AppDomain the code runs in, will cause the entire process crash. So how to understand the reliability provided by AppDomain?

推荐答案


这篇关于如何理解AppDomain隔离提供的可靠性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 07:11
查看更多