Delphi / Object Pascal · Exception

EComponentError Exception

What does EComponentError Exception mean in Delphi / Object Pascal?

Raised when a component's Register procedure fails during palette registration, or when an application tries to rename a component at runtime to a name that either isn't a valid identifier or collides with another component sharing the same Owner.

EComponentError ExceptionDelphi (VCL) · Delphi (FireMonkey)

Condition

Raised when a component's Register procedure fails during palette registration, or when an application tries to rename a component at runtime to a name that either isn't a valid identifier or collides with another component sharing the same Owner.

Fix

For registration failures, verify the Register procedure name is case-correct and calls RegisterComponents properly; for rename failures, check the new name is a valid Pascal identifier and unique among siblings owned by the same component before assigning it to Name.

Related exception