diff -r 89d6a7a84779 -r 25a17d01db0c Symbian3/PDK/Source/GUID-F86CFD79-88B1-55E0-AF81-4666D97B7AF5.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/PDK/Source/GUID-F86CFD79-88B1-55E0-AF81-4666D97B7AF5.dita Fri Jan 22 18:26:19 2010 +0000 @@ -0,0 +1,12 @@ + + + + + +Automatic file deletion on closure

A temporary file can be destroyed automatically when the owning thread closes it or if the owning thread crashes.

Set EDeleteOnClose when opening a temporary file to enable the automatic deletion on closure. EDeleteOnClose can be used with RFile::Temp() and RFile::Create(). For example:

r = file.Create(TheFs, filename, EFileShareAny | EFileRead | EFileWrite | EDeleteOnClose);

The purpose of this flag is to prevent memory leaks when components that create temporary files crash.

Notes
  • Existing files cannot be opened with EDeleteOnClose set. Any attempts to do this will return the error message KErrArgument.

  • Automatic file deletion is not default behaviour.

\ No newline at end of file