System.Classes.EInvalidImage

From RAD Studio API Documentation
Jump to: navigation, search

System.Classes.EFilerErrorSystem.Classes.EStreamErrorSystem.SysUtils.ExceptionSystem.TObjectEInvalidImage

Delphi

EInvalidImage = class(EFilerError);

C++

class PASCALIMPLEMENTATION EInvalidImage : public EFilerError

Properties

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

Description

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.

See Also