intel / pcm

Intel® Performance Counter Monitor (Intel® PCM)
BSD 3-Clause "New" or "Revised" License
2.83k stars 477 forks source link

application crashes at getSystemCounterState #820

Closed Meldryt closed 2 months ago

Meldryt commented 2 months ago

I try to run my own visual studio project with some pcm example code.

PCM* m = PCM::getInstance();
sysstate = getSystemCounterState();

Its crashing in getSystemCounterState(). Its also crashing if i run it in a loop with getSocketCounterState() or getCoreCounterState calls.

edit: I had copies of WinRing.dlls and winpmem,WinRing.sys in several locations. After i delete most of them, it works without an issue.

It looks like there was a second service/process of WinRing or something else still running.

Also i can not delete WinRing0x64.sys in my Debug folder, because its still used, even after i closed my app.