warning C28172: The function has PAGED_CODE or PAGED_CODE_LOCKED but is not declared to be in a paged segment

A function that contains a PAGED_CODE or PAGED_CODE_LOCKED macro has not been placed in paged memory by using #pragma alloc_text or #pragma code_seg. The Code Analysis tool infers that a section is pageable when the section name begins with PAGE. This error is reported at the line number corresponding to the first brace ({) in the function.

This error usually occurs when the function was intended to be paged, but one of the pragmas was omitted or misplaced, or when a function changed from paged to non-paged. For more information, see Warning C28170.



Send comments about this topic to Microsoft

© 2015 Microsoft