Article ID: 310832 - Last Review: January 17, 2006 - Revision: 3.0

You receive the AssemblyUnloadFinished notification before the AssemblyLoadFinished notification

This article was previously published under Q310832
Expand all | Collapse all

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  (http://support.microsoft.com/kb/309551/EN-US/ ) INFO: CLR Profiling Services Problems

APPLIES TO
  • Microsoft Visual C++ 2005 Express Edition
  • Microsoft Visual C++ .NET 2003 Standard Edition
  • Microsoft Visual C++ .NET 2002 Standard Edition
Keywords: 
kbtshoot kbperformancetool kbprb KB310832
 

Article Translations