How Do You Resolve Performance Counter (PerfLib) 8-Byte Alignment Warning (Event ID 1016)
-
I am getting the warning that the performance counter DLL is not aligned on an 8-byte boundary. I originally thought the warning was being caused by our code, but even the Microsoft sample codes, ScribbleMouse and HWInputMon written by Jeffrey Richter (MSJ Aug 1998), are giving the same warnings when I recompiled them. I checked the allocation size in the case of the ScribbleMouse, and at 160 bytes, seems to be properly aligned. Does anyone know of a solution to this, or how to resolve the problem. I have looked at the KB Q262335 referred to below, and have tried various options without luck. HOWTO: Align Performance Data of a Performance Extension DLL on an 8-Byte Boundary SUMMARY When the performance data buffer returned by a performance extension DLL is not aligned on an 8-byte boundary, the performance library (PERFLIB) part of ADVAPI32.dll will report a warning 1016 to the Application Log in Event Viewer. This article explains how the developer of a performance extension DLL can align the performance data on an 8-byte boundary. Gaulles http://www.gaulles.com