Changes are not allowed when the debugger has been attached to an already running process or the code being debugged is optimized.