System.SysUtils.EAccessViolation

From RAD Studio API Documentation
Jump to: navigation, search

System.SysUtils.EExternalSystem.SysUtils.ExceptionSystem.TObjectEAccessViolation

Delphi

EAccessViolation = class(EExternal);

C++

class PASCALIMPLEMENTATION EAccessViolation : public EExternal

Properties

Type Visibility Source Unit Parent
class public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils System.SysUtils

Description

EAccessViolation is the exception class for invalid memory access errors.

EAccessViolation is raised when an application:

  • Dereferences a nil (Delphi) or NULL (C++) pointer.
  • Writes to memory reserved for executable code.
  • Attempts to access a memory address for which there is no virtual memory allocated to the application.

Run-time exception information is saved in fields provided by EExternal.

Note: Applications should not raise EAccessViolation directly, but should instead rely on the run time to raise this exception.

See Also