我已经下载了 ANTS 和 dotTrace 分析器的试用版。
在 ANTS 中进行分析时,程序在某个点停止,我在控制台窗口中收到此错误:
系统错误(-2147467259):__kmp_setaffinity:SetThreadAffinityMask:未指定的错误
OMP 中止:检测到致命的系统错误。
dotTrace 中没有戏剧性的程序配置文件。错误是什么意思,是我的代码问题还是 ANTS 问题?
我已经下载了 ANTS 和 dotTrace 分析器的试用版。
在 ANTS 中进行分析时,程序在某个点停止,我在控制台窗口中收到此错误:
系统错误(-2147467259):__kmp_setaffinity:SetThreadAffinityMask:未指定的错误
OMP 中止:检测到致命的系统错误。
dotTrace 中没有戏剧性的程序配置文件。错误是什么意思,是我的代码问题还是 ANTS 问题?
ANTS Profiler needs to set the thread affinity to save having to implement complicated cross-thread synchronization that would slow down the application and introduce serious complication to the Profiler code.
This is done using the Win32 API function SetThreadAffinityMask
-- the failure message leaves a lot to be desired, but what you could do as a workaround is open
%userprofile%\Local Settings\Application Data\Red Gate\ANTS Performance Profiler 5\PerformanceProfilerSettings.xml
and change UseThreadAffinity
to False.
If any problems occur during profiling, you could try downloading a third-party program to set the affinity for your application.