Thousands of cla*.tmp files pile up in the %TEMP% folder after printing or previewing reports

Applies to: reports that can be previewed; posted in the Clarion 10 group, no template chain named.

Problem

The %TEMP% folder held thousands of cla*.tmp files. After deleting them, 65,000 new ones appeared the next morning, all dated within one hour. A second user reported that printing one report hangs at random, creates CLAxxxx.tmp files until the program is killed in Task Manager, and works on some computers but not on others.

Solution

  1. A report that can be previewed always creates one .TMP file per page: an image of the page in WMF format. Renaming a file from .TMP to .WMF lets Paint open it.
  2. Normally the files are removed when the program ends. They are left behind when the process is killed in Task Manager, the computer is switched off without exiting the program, or the program locks up or crashes during report generation or preview.
  3. Delete the old files by hand or with a cleaner such as CCleaner.
  4. For a report that hangs, one poster named a %TEMP% folder full of other files as the usual reason, so clearing it out is the first step. If that does not help, ask whether the report is large or complex or embeds images.

Caveats

  • The thread did not explain the 65,000 files in one hour, and the hanging report was not solved.
  • The files only show that a report was being generated; they do not name the cause of a hang.
  • The first poster did not report back after the explanation.

Today (2026)

Likely still the same, since the preview mechanism is not described as changed. Not re-tested on a current build.

Sources: Dan S. (Oct 2017, the question), Lee W., Robert I. (Mar 2019), Graham D. (Mar 2019) in sv.clarion.clarion10.