Why MaxScript does not release the files using the function Close()? Почему MaxScript не освобождает файлы с помощью функции Clo

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
pixamoon's picture

hmm

here it works fine

after close and free, file is not locked to 3dsmax anymore.

did you try on other machines, systems or max versions ?

Nik's picture
pixamoon's picture

around

oki, you can try the way around using Unlocker :)

fPath = "C:\\tmp.txt"
f = createfile fPath
close f
free f
shellLaunch "C:\\Program Files\\Unlocker\\Unlocker.exe" ("\"" + fPath + "\" /S")

Does it help ?

ah, if you use Windows 8, maybe try different location than root "c:\" and system folders.

Nik's picture

Oh thank you so much! :) It Works!

And how i not thought of it! :)

pixamoon's picture

great :)

:) great, did it work with unlocker or with different folder in win 8 ?

Nik's picture

Unlocker

worked

pixamoon's picture

`

great, but it still needs external unlocker... eh

Nik's picture

I have checked

I have checked. Not only on this machine but on other.
3dMax 2012

pixamoon's picture

re:ver

hmm, I checked here in win7 max2009 and max2014. it works in both for me :(

Did you try gc() ?

barigazy's picture

...

That's why I prefere XML for data storage. It's much faseter and eficient for sure

barigazy

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.