Jump to content

Unclosed file (?) garbage collection


Przemcio

Recommended Posts

Hey,

It's a pretty hard issue to reproduce, but sometimes (legendary rare tier) when MTA is downloading files through downloadFile, the file appears as taken by a process (most likely MTA itself), so it's practically unusable until you stop the MTA, that's when the file is "released" and can be used/modified/whatever. onClientFileDownloadComplete returns success as true to these files. Is there any way to "release" the file manually? I've tried using Lua's garbagecollector, it does work when I simulate the issue through unclosing the file after fileOpen, but seems like it doesn't when this particual issue happens.

If anyone happened to cross the issue, how did you manage to overcome it? I can't even try to download the file again, as it's protected by a process. Thanks!

Link to comment

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...