New code for AppMemoryInvalid [#49677443]