TMP errors, such as those associated with advancedfileoptimizersetup_cfg (3).tmp, most often occur during computer startup, program startup, or while trying to use a specific function in your program (eg. printing).