PREfast Warning 262 (Windows CE 5.0)
262 - This function uses <constant> bytes of stack.
Additional Information: Exceeds /STACKHOGTHRESHOLD = <constant>.
Recommended Fix: Consider moving some data to heap.
This warning indicates that stack usage exceeding a preset threshold has been detected. The default threshold for this warning is 16K bytes.
Stack, even in user-mode, is limited, and failure to commit a page of stack results in an exception that can not be handled.
Example
Defective Source
char Buffer[123456];
Corrected Source
char *Buffer;
Buffer = (char *)malloc(123456);
if (Buffer == NULL) {
return;
}
Send Feedback on this topic to the authors