2005-12-07, 00:38
affini:
if you could give me the full output of the backslash error that would help. as i said, you are the only one who has reported this problem, and i can't duplicate it, so without the full output i'm kinda stuck.
as far as the textures.xpr file goes, i get a permission denied error using either smb or ftp about 1 out of 10 times i try. i'm pretty certain python scripts run in a seperate thread, and as such it is conceivable that they will both try to access the same file at the same time, and in that situation, you can't open a file for writing that is already open in another thread. (presumably the xbmc ftp server has some method to handle this)
it is fairly probable that using the progress dialog is what is causing xbmc to have the file open and i don't want to lose the dialog.
i think my best option is to maybe try to close the dialog during problem files, or make the script wait till the file is not in use. as it only happens intermittently, i imagine that the amount of time where the file is in use is small and the latter option could work fine.
if you know something i don't know about files and threads in xbmc that i don't know, let me know i am by no means an expert on this subject.
ruuk
if you could give me the full output of the backslash error that would help. as i said, you are the only one who has reported this problem, and i can't duplicate it, so without the full output i'm kinda stuck.
as far as the textures.xpr file goes, i get a permission denied error using either smb or ftp about 1 out of 10 times i try. i'm pretty certain python scripts run in a seperate thread, and as such it is conceivable that they will both try to access the same file at the same time, and in that situation, you can't open a file for writing that is already open in another thread. (presumably the xbmc ftp server has some method to handle this)
it is fairly probable that using the progress dialog is what is causing xbmc to have the file open and i don't want to lose the dialog.
i think my best option is to maybe try to close the dialog during problem files, or make the script wait till the file is not in use. as it only happens intermittently, i imagine that the amount of time where the file is in use is small and the latter option could work fine.
if you know something i don't know about files and threads in xbmc that i don't know, let me know i am by no means an expert on this subject.
ruuk