COMP: Using CreateTemporaryFile() now.
Merge branch 'bug-12997-UseCreateTmpFile'