You receive the AssemblyUnloadFinished notification before the AssemblyLoadFinished notification (310832)



The information in this article applies to:

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

This article was previously published under Q310832

SYMPTOMS

You may receive the AssemblyUnLoadFinished notification before you first receive the AssemblyLoadFinished notification.

CAUSE

When the Common Language Runtime(CLR) service attempts to load an assembly, the profiler receives the AssemblyLoadStarted notification. However, it is possible for the CLR to abort the loading process before the process is finished. In that case, the profiler receives the AssemblyUnloadStarted and AssemblyUnloadFinished notifications before it receives the AssemblyLoadFinished notification.

RESOLUTION

To resolve this issue, make sure that the profiler is able to detect the situation described in the "Cause" section of this article and, therefore, infer that the loading of the assembly has been aborted.

STATUS

This behavior is by design.

REFERENCES

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

309551 INFO: CLR Profiling Services Problems


Modification Type:MajorLast Reviewed:1/17/2006
Keywords:kbtshoot kbPerformanceTool kbprb KB310832 kbAudDeveloper