By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,462 Members | 1,466 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,462 IT Pros & Developers. It's quick & easy.

Replacing function pointers at runtime

P: n/a
Hello all, had a question about reflection and I was wondering ifanyone could help. I want to change the address pointer, in theVTABLE of an instance of a .Net object, to point to a method ofmy choosing. There are a lot of sealed classes in the .Netenvironment that could do with a little refinement,unfortunately short of writing a clumsy wrapper object there isno way to do so other than manipulating the existing object atruntime. I know this maybe a little tricky to do since the GCwill occasionally restructure memory. But my thought was tocircumvent that by first pinning the object or at least thetarget method by creating a HandleRef to it.
Thanks in advance

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>FT+VsqvqcUeKfZ6GrgMpQA==</Id>
Nov 16 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.