ngen and Enter leave tail hooksIf a dll is ngen'ed, will the FunctionMapper method not work?<br/> <br/> That is, if I return the second parameter of FunctionMapper i.e. *pbHookFunction as false, will the enter, leave and tail hooks still be called?<br/> <br/> This seems to be what happens in my profiler. And the only change in the environment is that a dll is in ngen and I have to run ngen with /profile for this.<br/> <br/> Is there some way I can prevent the ELT hooks from being called for these methods?<br/> <br/> Thanks© 2009 Microsoft Corporation. All rights reserved.Mon, 22 Jun 2009 21:38:52 Z776c2d7a-c347-4d28-9a76-030917174e78http://social.msdn.microsoft.com/Forums/en-US/netfxtoolsdev/thread/776c2d7a-c347-4d28-9a76-030917174e78#776c2d7a-c347-4d28-9a76-030917174e78http://social.msdn.microsoft.com/Forums/en-US/netfxtoolsdev/thread/776c2d7a-c347-4d28-9a76-030917174e78#776c2d7a-c347-4d28-9a76-030917174e78raxrajahttp://social.msdn.microsoft.com/Profile/en-US/?user=raxrajangen and Enter leave tail hooksIf a dll is ngen'ed, will the FunctionMapper method not work?<br/> <br/> That is, if I return the second parameter of FunctionMapper i.e. *pbHookFunction as false, will the enter, leave and tail hooks still be called?<br/> <br/> This seems to be what happens in my profiler. And the only change in the environment is that a dll is in ngen and I have to run ngen with /profile for this.<br/> <br/> Is there some way I can prevent the ELT hooks from being called for these methods?<br/> <br/> ThanksTue, 21 Apr 2009 17:50:58 Z2009-04-21T17:50:58Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxtoolsdev/thread/776c2d7a-c347-4d28-9a76-030917174e78#457d7be4-84e7-4e99-b1c7-28e8b682d3b8http://social.msdn.microsoft.com/Forums/en-US/netfxtoolsdev/thread/776c2d7a-c347-4d28-9a76-030917174e78#457d7be4-84e7-4e99-b1c7-28e8b682d3b8raxrajahttp://social.msdn.microsoft.com/Profile/en-US/?user=raxrajangen and Enter leave tail hooksCleaned up the .NET framework installation according to http://blogs.msdn.com/astebner/archive/2007/03/26/how-to-repair-the-net-framework-2-0-and-3-0-on-windows-vista.aspx<br/> <br/> and things work fine now.<br/> <br/> The methods I mark with *pbHookFunction as false are not entered into in the ELT hooks now.<br/>Tue, 21 Apr 2009 23:44:17 Z2009-04-21T23:44:17Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxtoolsdev/thread/776c2d7a-c347-4d28-9a76-030917174e78#cf49337c-d8ab-4d9c-a0e7-702742882984http://social.msdn.microsoft.com/Forums/en-US/netfxtoolsdev/thread/776c2d7a-c347-4d28-9a76-030917174e78#cf49337c-d8ab-4d9c-a0e7-702742882984holger heinrichhttp://social.msdn.microsoft.com/Profile/en-US/?user=holger%20heinrichngen and Enter leave tail hooks<p>@raxraja<br/>I experience the same problem as you did. Whenever I am using the native (profiling) images, I am receiving ELT-Callbacks eventhough i  set *pbHookFunction to false and even returned a null pointer.<br/><br/>Whenever I remove the profiling images, everything seems to be as expected. No callbacks for filtered calls.<br/><br/>I am curious, how and why did the .Net framework installation clean up help you ? <br/>Do you still use the profiling images or did you remove them ?  Did you check the list of loaded modules if the corresponding module is still a ni-image ?<br/><br/>Is there something I can do to prevent the ELT callbacks when using the option ngen /profile ?<br/><br/>@all:<br/>Reducing JIT-times is not worth it if runtime overhead is added for each call, in particular calls with high frequency.<br/>Is the observed effect by design ? Anything we can do here ? <br/><br/>Thanks,<br/>Holger</p>Mon, 22 Jun 2009 21:38:51 Z2009-06-22T21:38:51Z