DelphiFAQ Home Search:
General :: Programming :: Delphi :: VCL
About the Delphi VCL (Visual Component Library)


This list is sorted by recent document popularity (not total page views).
New documents will first appear at the bottom.

This is the FULL list of all articles in this category.

Featured Article

When and why is an EFCreateError exception raised?


My application throws an EFCreateError exception - what does that mean?


The EFCreateError eception is raised when an error occurred during creation of a TFileStream stream (which is the creation of a new file).

Probable reasons: lack of access rights, lack of disk space. See the code below (part of unit Classes.pas where this exception is raised.

constructor TFileStream.Create(const FileName: string; Mode: Word);
     FHandle := FileCreate(FileName);
     if FHandle < 0 then
       raise EFCreateError.CreateResFmt(@SFCreateError, [FileName]);

Generated 16:01:15 on Jun 17, 2018