|
Thanks Dave
I just unpack the CLR Profiler.rar, there is a compiled dll in debug folder. I use it in command prompt to profile a win forms app, no modification to the code. Then exception.
Then I compile the profiler to release version, (project file is converted from vs8 to vs9), still exception.
But i find the key maybe:
m_dwEventMask |= COR_PRF_MONITOR_ENTERLEAVE; dwFooMask += COR_PRF_MONITOR_ENTERLEAVE;
When I delete EnterLeave mask, there's no exception. Maybe the reason is inline asm code for ENTERLEAVE function? |