Diagnostics.ForcedCrashCategory.AccessViolation

Unity · Версия 2020.3 LTS · Scripting · ForcedCrashCategory

Diagnostics.ForcedCrashCategory.AccessViolation

Описание

Cause a crash by performing an invalid memory access.

The invalid memory access is performed on each platform as follows:

OSX, Android: Invoked using raise(SIGSEGV);

Windows, Windows Store: Invoked using RaiseException with EXCEPTION_ACCESS_VIOLATION

Other: Invoked using int* p = NULL; *p = 5;

Обновлено 17 ноября 2026 г.