Learn about access violation exceptions and runtime exceptions.

What is an access violation exception?

During its execution, a thread accesses various memory addresses doing reads and writes. Sometimes, memory is not present due to gaps in the virtual address space or different protection levels like read-only or no-execute memory regions. If a thread tries to violate that, we get an exception translated to a traditional UNIX signal.

Certain regions are forbidden to read and write, such as the first 64 KB. If we have such an access violation there, it’s called the NULL pointer access.

Note: Any thread can have an exception.

Sometimes, the code can catch these exceptions, preventing users from seeing error messages. These exceptions can contribute to corruption, and we can call them hidden exceptions.

Get hands-on with 1200+ tech skills courses.