O'Reilly logo
  • wenyang duan thinks this is interesting:

This second instruction generates the exception. The exception filter would catch the exception, correct the value in pchBuffer, and tell the system to re-execute the second CPU instruction. The problem is that the contents of the register wouldn’t be changed to reflect the new value loaded into pchBuffer, and re-executing the CPU instruction would therefore generate another exception. We’d have an infinite loop!

From

Cover of Windows® via C/C++, Fifth Edition

Note

Use EXCEPTION_CONTINUE_EXECUTION with caution.