If you want different behaviour from the default (which you
correctly state below - mscoree.idl has comments which confirms this
behaviour), and don't want to use unmanaged code, the only real option is to
rely on registry settings.  Under
HKEY_CURRENT_USER\Software\Microsoft\.NETFramework, you can specify a DWORD
LoaderOptimization value, and use the same settings as in mscoree.idl.  This
setting is used for all CLR apps that don't explicitly specify their own
LoaderOptimization flags, and is unsupported.

FWIW, I have had a play around with the CLR counters if perfmon, and can
confirm that these settings work.

>From what I understand, all the CorBindToRuntimeEx  settings should have
been made available through configuration files settings in the
<configuration><runtime> section, but failed to make it due to timeline
constraints.

Nick

Sydney Deep .NET User Group www.sdnug.org

----- Original Message -----
From: "Wilson Chiesa" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 12, 2002 12:58 PM
Subject: [DOTNET] Custom Hosts, AppDomains and Domain-Neutral Assemblies


Hi guys,

I have a question related to AppDomains and Custom Hosts. How can I
create a custom host that loads domain-neutral assemblies using C# ? I
know that you can do that using C++ and the CorBindToRuntimeEx API, but
how about if I want to create the host using C# and share the assemblies
between AppDomains, It is possible ? If it is not possible, what is the
default method in which the assemblies are loaded ? I think it is
mscoree.dll as domain-neutral and the rest one are not shared.

Thanks in advanced,
Wilson Chiesa.

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to