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:
Access violations are not always detected (try the code above, it might just reach the end) and therefore difficult to debug.