# AccessViolation

> Cause a crash by performing an invalid memory access. The invalid memory access is performed on each platform as follows:

## Definition

* **Type:** Field
* **Namespace:** [UnityEngine.Diagnostics](/engine/6000.6/script-reference/unityengine/diagnostics.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
AccessViolation = 0
```

### Remarks

**OSX, Android**: Invoked using **raise(SIGSEGV)**;

**Windows, Windows Store**: Invoked using **RaiseException** with EXCEPTION\_ACCESS\_VIOLATION

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