(C++) access violation
August 30, 2019 · View on GitHub
An access violation is a type of run-time error in which the program reads or writes to non-allocated memory. In the example below, an array is declared, after which the space in memory beyond it is set to zero:
int main() { int v[1]; v[1] = 0; //Access violation! }
Access violations are not always detected (try the code above, it might just reach the end) and therefore difficult to debug.