Thanks to your reply :D
I'm just exploring the CLR host support in whidbey, so want to konwn why
I can't got IEEMemoryManager directly. I think IHostMemoryManager is
provider for CLR to get memory from Host, IEEMemoryManager is provider for
Host to get memory from CLR, so their purpose maybe different.
For example, I had implement IHostMemoryManager with Win32API
VirutalAllocEx etc. But in some situation (maybe alloc memory block size
less 1k), I want bypass the memory alloc request back to CLR, to reuse the
CLR internal cache or pool mechanism. So I need a interface like
IEEMemoryManager to export the CLR's memory management. But I walk into the
whidbey implementation, IEEMemoryManager seems based on IHostMemoryManager,
so it would recursion :(
I need a partial Host memory management. :D
btw: Could I return E_XXX from IHostMemoryManager::VirtualAlloc to bypass
the memory alloc request ?
--
"Alessandro Catorcini" <alessc@online.microsoft.com> дÈëÏûÏ¢
news:uHLCdIFkEHA.2516@cpmsftngxa10.phx.gbl...
[quoted text, click to view] > IEEMemoryManager is an internal-only interface that is used to allow other
> DLLs to interface with hosted memory operations.
>
> If you need to control memory allocations in a CLR host, what you want to
> do is to implement IHostMemoryManager on the host and follow the sample
> shown in Dino's blog (
http://weblogs.asp.net/dinoviehland ) to see how to
> hook it up.
>
> Could you elaborate more on what you are trying to do?
>
> --Alessandro
>
> This posting is provided "AS IS" with no warranties, and confers no
rights.
> Sample code subject to
http://www.microsoft.com/info/cpyright.htm >