---
title: cumulativeBadAccessExitCount
framework: metrickit
role: symbol
role_heading: Instance Property
path: metrickit/mxforegroundexitdata/cumulativebadaccessexitcount
---

# cumulativeBadAccessExitCount

The number of times the system terminated the app from the foreground for attempting an invalid memory access.

## Declaration

```swift
var cumulativeBadAccessExitCount: Int { get }
```

## Discussion

Discussion The most common reasons for this kind of termination are an attempt to access a nonexistent or reserved memory location, or to access memory in a way that’s inconsistent with the protection level, such as writing to read-only memory.

## See Also

### Reading the Crash Count

- [cumulativeIllegalInstructionExitCount](metrickit/mxforegroundexitdata/cumulativeillegalinstructionexitcount.md)
