RAD Studio VCL Reference
EAccessViolation Class

EAccessViolation is the exception class for invalid memory access errors.

EAccessViolation = class(EExternal);
class EAccessViolation : public EExternal;

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 runtime to raise this exception.


Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!