The functionId that is passed to UnmanagedToManagedTransition callback is not JIT-compiled in Visual C++ .NET or in Visual C++ 2005 (312220)



The information in this article applies to:

  • Microsoft Visual C++ .NET (2002)
  • Microsoft .NET Framework 1.0
  • Microsoft Visual C++ .NET (2003)
  • Microsoft .NET Framework 1.1
  • Microsoft Visual C++ 2005 Express Edition

This article was previously published under Q312220

SYMPTOMS

When the profiler receives an UnmanagedToManagedTransition notification with reason COR_PRF_TRANSITION_CALL, the functionId that is passed to the callback may correspond to a managed function that is not yet Just In Time (JIT)-compiled. Therefore, when you use this functionId in any ICorProfilerInfo methods to retrieve information about the corresponding managed function, you may experience failures.

CAUSE

This behavior can occur if the managed function is not available (it is not yet JIT-compiled).

For additional information about CLR profiling, click the article number below to view the article in the Microsoft Knowledge Base:

309551 INFO: CLR Profiling Services Problems

STATUS

This behavior is by design.

Modification Type:MajorLast Reviewed:1/16/2006
Keywords:kbPerformanceTool kbprb KB312220 kbAudDeveloper