Edit and Continue : warning 2003

Code position change may cause exception handling or variable destruction errors: function

Code changes before the point of execution might have altered the exception-handling state. Changes to the exception-handling state can be caused by:

  • The execution of a constructor.

  • The execution of a destructor.

  • Entry into a try/catch block.

  • Exit from a try/catch block.

If the exception-handling state has changed, the exception handler cannot be invoked and variables cannot be properly constructed or destructed. You can continue debugging, but your application might crash or experience memory leaks if an exception occurs. To avoid this possibility, stop debugging, and rebuild your application.

This error can occur only if the function is compiled with /GX for exception handling.

See Also

Reference

Supported Code Changes