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 / August 2004

Tip: Looking for answers? Try searching our database.

Default Shared policy

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ESCOFFIER Clément - 24 Aug 2004 13:00 GMT
Hi,

I have a question about the default share policy of the .Net framework.
In the SSCLI, I see that just mscorlib is shared. Is that on the .Net
framework ?

An other question, each appdomain must load mscorlib to use base type if
this assembly is shared, this behavior is not very heavy ?

Thanks

Clement
Ori Gershony [MSFT] - 30 Aug 2004 17:58 GMT
Yes, by default only mscorlib is shared.  You can override the default
using the LoaderOptimization enumeration (see
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfsystemloaderoptimizationclasstopic.asp for more information).

I'm not sure I understand the second question.  If the assembly is going to
be loaded in multiple appdomains, then sharing is the most efficient choice
(otherwise the CLR will generate code for this assembly in each appdomain
in which it's loaded).

Thanks!

-- Ori.

--------------------
>Date: Tue, 24 Aug 2004 14:00:42 +0200
>From: =?ISO-8859-1?Q?ESCOFFIER_Cl=E9ment?= <clement.escoffier@imag.fr>
[quoted text clipped - 13 lines]
>X-Complaints-To: abuse@proxad.net
>Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.s
ul.t-online.de!t-online.de!newsfeed.icl.net!proxad.net!feeder2-1.proxad.net!
news3-e.free.fr!not-for-mail
>Xref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.framework.clr:11689
>X-Tomcat-NG: microsoft.public.dotnet.framework.clr
[quoted text clipped - 11 lines]
>
>Clement

Signature

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note:  For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.


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.