Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's C++ page.

 

 

 

 

 

(C++) access violation

 

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.

 

 

 

 

 

Go back to Richel Bilderbeek's C++ page.

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict