Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 4164 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

 

Posted

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.

Posted

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.

Posted

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.

Posted

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.

This topic is 4164 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.