Hi Jim, The windows process is created first. Within the process the CLR is started. Within the CLR the default App Domain is created. Then the CLR loads and executes the code for your application.
So it's not really correct to say that the App Domain gets a process, it's kind of the other way around. If you want, you can create more App Domains within an existing instance of the CLR by using System.AppDomain.CreateDomain. If you need even more control, you can use the unmanaged interfaces to the CLR which allow you to write your own CLR host, se e 'Hosting the Common Language Runtime' in the SDK. Cheers, Henry -----Original Message----- From: Jim Nakashima [mailto:[EMAIL PROTECTED]] Sent: Saturday, August 10, 2002 8:43 PM To: [EMAIL PROTECTED] Subject: [ADVANCED-DOTNET] Appdomain and Process Question When starting a new .Net application (windows forms or console for example) locally on a Windows machine, does the appdomain for that application get it's own win32 process by default or is it possible for your application to be started in an existing CLR host process? Thanks, Jim __________________________________________________ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.