June 28, 201312 yr Hey all, We are using FMP 9 - 11 Clients all on windows, it doesn't matter if the solution is run from a server or run from the local system. When I use Get (Temporary Path) I am expecting to get something similar to this " /C:/Users/ronc/AppData/Local/Temp/S10/ " it should end with Temp/S10. What I am getting is sometimes this " /C:/Users/ronc/AppData/Local/Temp/S10.1/ " or " /C:/Users/ronc/AppData/Local/Temp/S10/S10.1 " on different systems and clients. I can use Get (Temporary Path) in one script and it works fine, in another it doesn't, or go back and run the first script and it works fine. It doesn't matter if the software is on a server or is run from the local machine, it is still inconsistant. The problem is that these last two paths don't exist and the script will fail when we try to put or get anything there. This started noticing it about 2 months ago and seems to be getting worse. We have used this heavily throughout our software and have not had any issues for years till now. My work around for now is to get the path from Get (Temporary Path), create the folder based on what is returned, then do the temp work. This would be a major undertaking to update all of our code for this issue. So before doing this I was wanting to know what could be causing this and see if there might be another solution. Has anyone run into this before and know what may be causing this? Any help would be greatly appreciated. -Ron
June 28, 201312 yr There used to be a bug in FMP that failed to clear the temp folder when FMP was quit (that's what is was supposed to do). As a consequence the temp fodlers could get huge. Can't remember when it got fixed, but certainly existed in v9, possibly v10. Definitely fixed in v11.
June 28, 201312 yr Author Yes, I remember that, thanks. I checked to make sure that FMP would clear the S10 folder and it does on close. It just seems to get lost when it reports where and what the folder should be. Thanks for the help.
June 28, 201312 yr This could involve all combinations of v9, v10 and v11 with XP, Vista and Win7 IIRC the AppData folder moved in Win7 and is definitely in a different structure than XP.
June 29, 201312 yr Just to be clear: IIRC FMP keeps the temp folder around only as long as the script runs. If you write something to a temp path in one script and try to read it from a different script at a later time, that folder is not going to be there anymore. It wasn't clear from your description if you are writing and reading all inside the same script or not.
June 29, 201312 yr Wim, I believe the temp folder is persistent throughout the session (not per script). Let's see if it's documented anywhere... OK, it the help: http://www.filemaker.com/11help/html/func_ref2.32.77.html So, per user session. And for FMS, each scheduled script is considered a distinct session.
Create an account or sign in to comment