EInvalidImage = class(EFilerError);
class PASCALIMPLEMENTATION EInvalidImage : public EFilerError
EInvalidImage is the exception class for unsuccessful attempts to read resources.
EInvalidImage is raised when an application cannot read a resource. This occurs most often because the specified file is not a resource file.
This error can occur if the TStream object's read and write methods are used inconsistently. Always use ReadComponentRes to read components written with WriteComponentRes, and ReadComponent to read components written with WriteComponent. Failure to use the corresponding read and write methods can result in EInvalidImage exceptions.