开发者

Process and AppDomain load/unload

开发者 https://www.devze.com 2022-12-20 04:20 出处:网络
If I instance a new Process in which I then create a new AppDomain, I\'m wondering what is the safest way to end the Process. Should I:

If I instance a new Process in which I then create a new AppDomain, I'm wondering what is the safest way to end the Process. Should I:

  1. AppDomain.Unload(myAppDoma开发者_运维百科in)
  2. Process.Close() OR Process.Dispose(), then Process.Close()


No, there is no need to unload your domain manually before closing the process. And you should call only Process.Close().

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号