diff -r ebc84c812384 -r 46218c8b8afa Symbian3/PDK/Source/GUID-F86CFD79-88B1-55E0-AF81-4666D97B7AF5.dita --- a/Symbian3/PDK/Source/GUID-F86CFD79-88B1-55E0-AF81-4666D97B7AF5.dita Thu Mar 11 15:24:26 2010 +0000 +++ b/Symbian3/PDK/Source/GUID-F86CFD79-88B1-55E0-AF81-4666D97B7AF5.dita Thu Mar 11 18:02:22 2010 +0000 @@ -1,12 +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