**Error:** System.AccessViolationException: 'Attempted to read or write protected memory. This is often an indication that other memory is corrupt.' Unhandled exception on `function();`.