Hi,
I'm making calls to pdhenumobjects() to get performance stats, which is working fine for me until I launch Aptana Studio.
/////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////
DWORD dwTemp = 0;
PDH_STATUS stat;
// this is just to refresh our object data
stat = PdhEnumObjects(NULL, NULL, NULL, &dwTemp, PERF_DETAIL_WIZARD,
true);
/////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////
Once I launch the studio, CPU usage jumps to 100% and it takes about 30 secs for it to service this call. Here is the thread stack when the CPU hits 100%.
/****************************************************************/
ntdll.dll!KiFastSystemCallRet
perfproc.dll!CollectSysProcessObjectData+0x163
ADVAPI32.dll+0x71013
ADVAPI32.dll!IsTextUnicode+0xc691
ADVAPI32.dll!WmiReceiveNotificationsW+0xe3c
ADVAPI32.dll!RegQueryValueExW+0x8c
pdh.dll!PdhGetCounterTimeBase+0x2b99
pdh.dll!PdhLookupPerfIndexByNameA+0x9be
pdh.dll!PdhEnumMachinesA+0x109
pdh.dll!PdhEnumObjectsHA+0x1a9
pdh.dll!PdhEnumObjectsA+0xa5
AeXSystemPerformance.dll!CSystemPerformance::CacheInstanceNames+0x301
RPCRT4.dll!CheckVerificationTrailer+0x70
RPCRT4.dll!NdrStubCall2+0x215
RPCRT4.dll!NdrCStdStubBuffer2_Release+0x260
OLEAUT32.dll!DllGetClassObject+0x182
ole32.dll!StgGetIFillLockBytesOnFile+0x10439
ole32.dll!StgGetIFillLockBytesOnFile+0x103e3
ole32.dll!CoReleaseMarshalData+0x7dc
ole32.dll!CoReleaseMarshalData+0x701
ole32.dll!DcomChannelSetHResult+0x5ba
ole32.dll!StgGetIFillLockBytesOnFile+0x10643
ole32.dll!StgGetIFillLockBytesOnFile+0x101c4
ole32.dll!StgGetIFillLockBytesOnFile+0x105fa
ole32.dll!DcomChannelSetHResult+0x5f4
ole32.dll!DcomChannelSetHResult+0x42a
USER32.dll!GetDC+0x6d
USER32.dll!GetDC+0x14f
USER32.dll!GetWindowLongW+0x127
USER32.dll!DispatchMessageW+0xf
ole32.dll!CoFreeUnusedLibrariesEx+0x23d
ole32.dll!CoGetObject+0x2275
ole32.dll!CoGetObject+0x21a8
ole32.dll!StringFromGUID2+0x5da
kernel32.dll!GetModuleFileNameA+0x1b4
/****************************************************************/
Please help. Thanks in advance.
Samrat.