Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / CLR / January 2008

Tip: Looking for answers? Try searching our database.

About CLR Host.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
lander - 30 Dec 2007 13:53 GMT
I'm confused by Shell(explorer.exe) is one CLR host for .net
applications.

If there are many winform applications running, are there many
application domains in explorer.exe? It must exhaust the reources in
explorer.exe!

Also, if i double click a winform application, it is displayed as a
independent win32 process instead of an appdomain in
explorer.exe..........

I must be wrong, can somebody here clear this? thanks a lot!
Mattias Sjögren - 30 Dec 2007 14:48 GMT
>I'm confused by Shell(explorer.exe) is one CLR host for .net
>applications.

Not that I'm aware of.

>If there are many winform applications running, are there many
>application domains in explorer.exe?

No. As you said yourself, each application run as a separate process.

Mattias

Signature

Mattias Sjögren [C# MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.

Willy Denoyette [MVP] - 30 Dec 2007 15:08 GMT
> I'm confused by Shell(explorer.exe) is one CLR host for .net
> applications.
[quoted text clipped - 8 lines]
>
> I must be wrong, can somebody here clear this? thanks a lot!

Explorer is not a host for the CLR, it's a shell that doesn't depend on the
CLR.
If you extend the explorer with managed code (which is not supported and
ill-advised), you will load the CLR in the explorer process, but that
doesn't mean that all processes started from the explorer shell will load
the CLR, these are just separate processes who don't inherit from the shell
(other than the environment block) .

Willy.
lander - 31 Dec 2007 09:54 GMT
On Dec 30, 11:08 pm, "Willy Denoyette [MVP]"
<willy.denoye...@telenet.be> wrote:

> > I'm confused by Shell(explorer.exe) is one CLR host for .net
> > applications.
[quoted text clipped - 18 lines]
>
> Willy.

So what does it mean by "shell is a CLR host for .net app" exactly?
Willy Denoyette [MVP] - 31 Dec 2007 15:53 GMT
On Dec 30, 11:08 pm, "Willy Denoyette [MVP]"
<willy.denoye...@telenet.be> wrote:
> "lander" <lostlander....@gmail.com> wrote in message
>
[quoted text clipped - 24 lines]
>
> Willy.

So what does it mean by "shell is a CLR host for .net app" exactly?

Don't know where you get this from, or in what context this was said. A CLR
host is an unmanaged code process that *explicitly* loads the CLR (just a
bunch of DLL's) in order to (eventually) execute "managed" code, that may
get loaded in that same process. The explorer shell does not know about the
CLR and does not explicitly loads the CLR in it's process space.
The only two CLR hosts I know of are SQL2005 (provided CLR hosting is
enabled) and Exchange 7.

Willy.
lander - 01 Jan 2008 04:18 GMT
> On Dec 30, 11:08 pm, "Willy Denoyette [MVP]"
>
[quoted text clipped - 41 lines]
>
> - Show quoted text -

I knew it from :
http://www.dotnetindia.com/2004/11/msdn_today.html
==>
The CLR hosts are
a. Windows Shell
b. IIS
c. IE
4. * but, how to host the CLR programmatically?

Anyway, i think i understand what you mean, thanks for explanation!
Willy Denoyette [MVP] - 01 Jan 2008 19:26 GMT
On Dec 31 2007, 11:53 pm, "Willy Denoyette [MVP]"
<willy.denoye...@telenet.be> wrote:
> "lander" <lostlander....@gmail.com> wrote in message
>
[quoted text clipped - 47 lines]
>
> - Show quoted text -

I knew it from :
http://www.dotnetindia.com/2004/11/msdn_today.html
==>
The CLR hosts are
a. Windows Shell
b. IIS
c. IE
4. * but, how to host the CLR programmatically?

Anyway, i think i understand what you mean, thanks for explanation!

Well I see, but these are wrong, IIS and IE are not CLR hosts, IIS *never*
loads the CLR, asp.net and managed code based web applications are hosted in
a separate process who's name depends on the OS version.
IE loads the CLR when it needs to run managed code (say a plug in or a page
that refers to a managed object), the Windows shell is not a CLR host for
the same reason.
Hosting the CLR can be done by calling the unmanaged Hosting API's, see
<http://msdn2.microsoft.com/en-us/library/9x0wh2z3.aspx> for details.

Willy.
lander - 02 Jan 2008 02:20 GMT
On Jan 2, 3:26 am, "Willy Denoyette [MVP]"
<willy.denoye...@telenet.be> wrote:
> On Dec 31 2007, 11:53 pm, "Willy Denoyette [MVP]"
>
[quoted text clipped - 73 lines]
>
> - Show quoted text -

Thanks for the link and all the information!  ^_^

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.