Menu

#3 Tagging fails because file is locked (intermittent)

v0.8.0.0
open
nobody
ID3 Tagging (1)
3
2008-06-03
2008-06-03
felixwatts
No

Sometimes when we try to write the tags upon download complete, the file is locked. pp first writes the file, then closes the file stream, then tries to open it again for tagging so its possible the lock is still held by pp when the tagging begins (despite the file stream having been flushed, closed and disposed). Another possibility is that a virus checker with on-write scanning has locked the file when pp releases it after download.

I suggest using this workaround: if we cant open the file for tagging, wait some milliseconds and try again, repeat this a small number of times, if still no success log it and give the user a Retry/Cancel.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB