I use Nsight Graphics for profiling my OpenGL application under Windows 10 (Quick launch → Frame Profiler). When I add to my application the following lines of the code:
unsigned long int objlen = 2048;
char objlist[2048];
PdhEnumObjects(0, 0, objlist, &objlen, PERF_DETAIL_EXPERT, FALSE);
I can’t launch a frame profiler. When I run my application without using Nsight Graphics everything works fine but when I launch the application using Nsight Graphics PdhEnumObjects function hangs out. Do you have any idea why it happens ?