Quantcast
Channel: Common Language Runtime Internals and Architecture forum
Viewing all articles
Browse latest Browse all 1710

.Net Profiler - CLR calls only IID_ICorProfilerCallback2

$
0
0

I have inherited ICorProfilerCallback6 in to my profiler for using GetAssemblyReferences(..) method. 

Whenever my web application runs and the w3wp processes tries to load the profiler, the CreateObject of my profiler is receiving the riid of IID_ICorProfilerCallback2. Even if i run a web application compiled in v4.6.1 or whatever, the RIID that comes for the CreateObject is IID_ICorProfilerCallback2 only. 

In this scenario how can i typecast Callback6 to the interface..?. 

*ppInterface = static_cast<ICorProfilerCallback6 *>(pProfilerCallback);

If i blindly cast ICorProfilerCallback6, it throws error in event logs as IID_ICorProfilerCallback2 is expected. But QueryInterface of my profiler class is getting riid of callback6 after two times of callback2. I am totally confused how to implement callback6's methods.. How should i proceed with this? 

-Selva


Viewing all articles
Browse latest Browse all 1710

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>