views:

126

answers:

1

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(myAppDomain)
  2. Process.Close() OR Process.Dispose(), then Process.Close()
+3  A: 

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

Sergey Teplyakov