Is it safe to catch EXCEPTION_GUARD_PAGE

Posted by Michael J on Stack Overflow See other posts from Stack Overflow or by Michael J
Published on 2010-06-17T02:28:15Z Indexed on 2010/06/17 2:32 UTC
Read the original article Hit count: 257

Filed under:
|
|

Environment is VC++ 9 on various Win platforms (XP and later)

I'm writing an unhandled exception handler. I have a vague recollection from my kernel days that it was bad to catch an EXCEPTION_GUARD_PAGE, as this was generated to tell the OS to enlarge the stack.

My question is twofold:

  1. Can such an exception occur in user space?

  2. If so, is it safe to catch it?

I'm not especially interested in doing anything with it. I just want to know if I need to put special code in to not catch it (as I'm catching everything at the moment).

© Stack Overflow or respective owner

Related posts about c++

Related posts about exception