Re: Threads and AppDomain

Tech-Archive recommends: Fix windows errors by optimizing your registry



No, creating a new application domain doesn't automatically create a
new thread. however you can create and execute one or more threads
within a new AppDomain if you need to.

More info here:
http://msdn2.microsoft.com/en-us/library/a60kkx8k.aspx

--
Chris Fulstow
MCP, MCTS
http://chrisfulstow.blogspot.com/


mickeymicks wrote:
Hello all!

Im 'trying' to make a plugin-based application (system) - everything except
the main window are plugins (all other sub-windows, panels, etc).

Each plugin comes from dll's.. and each dll is loaded on a separate
AppDomain..
my question:
Does creating a new AppDomain, automatically start a new thread?

Does this mean, that each of my plugin runs on their own thread? -which is
really my intention. Is this approach even a good one?

<im new to dotnet/appdomains, but is familiar with threading concepts..
this one is just confusing for me>

thanks for any help.

--
It is only through the heart that one can see rightly. (The Little Prince)

MickeyMicks

.



Relevant Pages

  • PlugIn dynamisch laden und Berechtigungen festlegen(Sandbox)
    ... Das PlugIn soll mit der ASP.NET Anwendung kommunizieren. ... 'Create a new AppDomain PolicyLevel. ... Dim domainPolicy As PolicyLevel = PolicyLevel.CreateAppDomainLevel ...
    (microsoft.public.de.german.entwickler.dotnet.csharp)
  • Re: Loading plugins in separate AppDomains
    ... In order for the plugin assemblies only to be loaded in the second AppDomain ... > MarshalByRefObject) in an assembly that implements the IPlugin interface. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Plugin difficulties
    ... if you set the ApplicationBase to the plugin directory ... > and then set the PrivateBinPath to the bin directory, ... Assemblies that are loaded in the secondary AppDomain, ...
    (microsoft.public.dotnet.framework.clr)
  • Re: Creating a Singleton that is a cross AppDomain Singleton
    ... public abstract class Plugin: MarshalByRefObject ... This would ensure that every plugin must be a MarshalByRefObject so you ... invoke methods on them without having them get loaded in that AppDomain. ... >> for the plugin assemblies only to be loaded in the second AppDomain you ...
    (microsoft.public.dotnet.csharp.general)
  • Re: Creating a Singleton that is a cross AppDomain Singleton
    ... public abstract class Plugin: MarshalByRefObject ... This would ensure that every plugin must be a MarshalByRefObject so you ... invoke methods on them without having them get loaded in that AppDomain. ... >> for the plugin assemblies only to be loaded in the second AppDomain you ...
    (microsoft.public.dotnet.framework.remoting)