다음을 통해 공유


PREfast Warning 318 (Windows CE 5.0)

Send Feedback

318 - Degenerate _try/_except.
Additional Information: Use of the constant EXCEPTION_CONTINUE_SEARCH (or another constant that evaluates to zero) in the exception-filter expression of a structured exception handler.

This message indicates that PREfast has detected a degenerate structured exception handler.

If an exception occurs in the protected block of this structured exception handler, the exception is not handled because the constant EXCEPTION_CONTINUE_SEARCH is used in the exception filter expression. In addition, the handler block is not executed.

This code is equivalent to the protected block without the structured exception handler or handler block.

Example

Defective Source

__try {
    *a = 0;
} __except (EXCEPTION_CONTINUE_SEARCH) {
    return GetExceptionCode();
}

Corrected Source

*a = 0;

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.