Microsoft KB Archive/310832

= You receive the AssemblyUnloadFinished notification before the AssemblyLoadFinished notification =

Article ID: 310832

Article Last Modified on 1/17/2006

-

APPLIES TO


 * Microsoft Visual C++ 2005 Express Edition
 * Microsoft Visual C++ .NET 2003 Standard Edition
 * Microsoft Visual C++ .NET 2002 Standard Edition

-



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 &quot;Cause&quot; section of this article and, therefore, infer that the loading of the assembly has been aborted.



STATUS
This behavior is by design.

