How would one go about keep an object in memory such that it won't be paged out by the OS in .Net?
i.e. Something similar to VirtualLock, but operating on an object, such that if compacting occurs and the object is moved it still would not be paged out, etc.. (I suppose one could pin the object's, determine what pages it belongs to, and then VirtualLock those pages, but that seems non-desirable for many reasons.)
If possible, could you point me to a reference or working sample? (C# ideally)
Have you looked at this one http://www.codeplex.com/NonPagedCLRHost ?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With