Questions tagged [clr-hosting]

CLR hosting means enabling a native process to execute managed code by using .NET runtime library dll that actually executes the managed code. Such native process said to "host" CLR, .NET Common Language Runtime, then in the hosted runtime the native process can execute any CLR assemblies.

CLR hosting means enabling a native process to execute managed code by using .NET runtime library dll that actually executes the managed code. Such native process said to "host" CLR, .NET Common Language Runtime, then in the hosted runtime the native process can execute any CLR assemblies.

Stack Overflow link: What is CLR hosting?

MSDN documentation:

So far, there are 3 different versions of CLR hosting for each major release of CLR: 4.0: https://msdn.microsoft.com/en-us/library/dd380851(VS.100).aspx

2.0: (Covers .NET 2.0/3.0/3.5):     https://msdn.microsoft.com/en-us/library/9x0wh2z3.aspx

1.1: https://msdn.microsoft.com/en-us/library/9x0wh2z3(v=vs.71).aspx

Books:

There is also a good book on this subject (but it mostly covers 2.0 hosting APIs):  "Customizing the Microsoft .NET Framework Common Language Runtime" from Steven Pratschner.

54 questions
0
votes
1 answer

Hosting .NET method in SQL Server CLR

I have been asked to create a function in SQL Server 2005 that is a CLR hosted function I have created in .NET 3.5. Do CLR functions hosted in SQL have access to App.Config files or do all config options need to be passed as paramaters?
Craig
  • 36,306
  • 34
  • 114
  • 197
0
votes
0 answers

.NET application not fully working when using CLR Hosting API

I am loading a .NET application using the ICLRRuntimeHost::ExecuteInDefaultAppDomain method which starts the application up fine. However, the application is using Log4Net with which it should output an info message after starting up, but it never…
J. Zeptra
  • 9
  • 2
0
votes
1 answer

Cannot create a WPF UserControl in a Clr 4.0 self hosting application because of a stackoverflow error

I managed to host the CLR 2.0 in a Delphi win32 application that was able to create and host WPF controls inside a Delphi control, something similar to the ElementHost for WinForms applications. Now, I want to move my solution to the CLR 4.0 and…
0
votes
0 answers

.Net Hosting API Memory usage

I'm trying to gather memory information that used by AppDomain by using .Net Hosting API. I've implemented custom IHostMemoryManager and IHostMalloc classes on C++, and specified them during creation of CRL Runtime. It similar like in that article -…
Sergey Litvinov
  • 7,408
  • 5
  • 46
  • 67
0
votes
1 answer

AppDomain access via ICorRuntimeHost

I need to enumerate AppDomains, loaded into CLR. But I need to do that from unmanaged code (in C++). I think, I should use ICorRuntimeHost. It contains methods for AppDomains enumeration. ICorRuntimeHost::NextDomain returns IUnknown* for current…
Viacheslav Kovalev
  • 1,745
  • 12
  • 17
0
votes
1 answer

Do I need to free BSTRs populated by _Type::get_FullName

I have some code that looks like this: _TypePtr spType = NULL; . . . // host the CLR and populate that type { BSTR fullName; spType->get_FullName(&fullName); wprintf(L"Got type %s\n", fullName); } Do I need to free that bstr? How do I…
Justin Dearing
  • 14,270
  • 22
  • 88
  • 161
0
votes
1 answer

IHostAssemblyStore::ProvideAssembly - Implementation for assemblies from folders

I'm trying to figure out how to load the AppDomainManager assembly in a managed clr hosting scenario from a folder different from the native .exe file. Has anyone done an IHostAssemblyStore::ProvideAssembly implementation, that will load the…
-2
votes
1 answer

Defeat erase PE from memory

How can I defeat erase PE from memory ? First: The executable I'm working on is a CLR Host in c++ so the program behind is in C# Second: The C# program erase the PE header with the function Virtual Protect (Very common protection for…
DrayNeur
  • 9
  • 1
-2
votes
2 answers

Where can I find the declaration of mscorlib::_AppDomain, mscorlib::_Type etc

I am using this for my base https://code.msdn.microsoft.com/CppHostCLR-e6581ee0/sourcecode?fileId=21953&pathId=1366553273 But in my VS2010 I cant get intellisense or go to declaration. I tried google, but it takes me to the .NET documentation. For…
CS.
  • 1,845
  • 1
  • 19
  • 38
1 2 3
4