Microsoft KB Archive/312220

From BetaArchive Wiki
Knowledge Base


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

Article ID: 312220

Article Last Modified on 1/16/2006



APPLIES TO

  • Microsoft Visual C++ .NET 2002 Standard Edition
  • Microsoft .NET Framework 1.0
  • Microsoft Visual C++ .NET 2003 Standard Edition
  • 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.

Keywords: kbperformancetool kbprb KB312220