C# appdomain permission no thread

85 Views Asked by At

I create appdomains to dynamically load dll's to - as supposed.

However I did not manage to stop an unhandled exception from terminating the whole thing - as it seems is not possible.

However I really would not have to if I just could forbid the creation of new Threads in the 3rd party dll.

Is there a way to forbid thread creation (and maybe task creation) in an custom AppDomain and if yes: How?

P.S.: I already learned about System.AddIn. I will take a look at it if no one has a positive answer.

0

There are 0 best solutions below