VS 2010, Performance Wizard for Unmanaged C ++

I tried using the performance wizard tool for my short C ++ test in VS 2010 Ultimate.

But for any code, the profiling process fails and the following error occurs:

Could not launch xxx.exe. Injection of runtime library failed. 

By this time I used Netbeans and with VS 2010 profiler I did not have much experience.

I wonder if this function is available for unmanaged C ++ ... C ++ code is correct ...

Configuration: VS 2010 Ultimate, Win 7 Prof. 32 bit

Updated question: The instrumental method works well, but the processor fetch method still does not work.

+4
source share
3 answers

Yes, the profiler works with its own code.

Try running Visual Studio as an elevated user.

0
source

Check if you have included Application Verifer pads for your application.

0
source

This problem may be caused by the fact that some anti-malware or anti-malware program sets hooks in your program, so the profiler cannot get its hooks. Some vendors provide ways to restrict these interceptors so you can profile, or just try it off for the duration of the profile.

0
source

All Articles