Or the problem comes from cTempfile() ????
Without a path-parameter .\ is default and in this path no rights existing in win7 in circumstances. This temp-file should be in temp-directory as default. I have also problems with timage:saveimage(). In this method cTempfile() is calling.
A possible code:
Code: Select all
function temp_path()
local cPath := ".\"
do case
case !empty(getenv("TEMP"))
cPath := getenv("TEMP")+"\"
case !empty(getenv("TMP"))
cPath := getenv("TMP")+"\"
endcase
return cPath