RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
EAccessViolation Class

EAccessViolation is the exception class for invalid memory access errors.

Pascal
EAccessViolation = class(EExternal);
C++
class EAccessViolation : public EExternal;

SysUtils

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) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!