EInvalidImage is the exception class for unsuccessful attempts to read resources.
EInvalidImage = class(EFilerError);
class EInvalidImage : public EFilerError;
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.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|