Notifications
Clear all

[Closed] locked files

Hi

I have an issue that Im not sure how to get around,
I have a bunch if files on the server that is copied with xcopy to my local machine via a startup script, this works fine the cmd window pops up and they show the copy happening.
They are then all fileIn`d to allow them to be used.

I have an Update.mcr that includes the startup script and runs the xcopy again, this works the first time and shows the files being copied, if i run it a second time xcopy complains of the files being locked, which they are, and doesent copy anything.

Im not sure why as its the same script being run, so why are they locked the second time?
I wanted to not force the artists to restart max each time a script gets updated, is this possible?

Thanks for any help/suggestions

d.b

4 Replies

I don’t know the actual cause, but if you put a

gc()

At the end of the copy script, does this fix the problem?

Boom!

perfect thanks!

Cool! The thing is, gc() might fix the issue but the problem remains – something is happening with those files that isn’t being closed properly. What version of Max are you using? 2012 had a problem with closing files which they didn’t fix until quite a later product update, if I recall correctly.

yeah i read about the not closing properly bug but im using 2013.

I have been through all the files and cant see any files left opened, so im assuming there is something odd/buggy going on here. I have left work now but im wondering if there is a list somewhere in Max listing all open files, might be able to get something, dunno.

Could always make my own i suppose