I now understand the problem.
Djvused creates a temp file when processing a single-page djvu file
and it uses the standard ansi function tmpnam().
Alas under Windows this function suggest a name in C:\
and they did not change it for Vista.
I changed the current CVS version to create the temp file
in the current directory under Windows.
That works better but is far from perfect.
Another problem is that the deletion of the temp file
often does not work because windows believes
that the file is in use. I am really not happy with windows right now.
A workaround would be to waste memory. I'll try that...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In principle, command djvused -e size should
not create a temporary file, so this is very bizarre.
Please try the newly released
version (djvulibre-3.5.21+djview-4.4)
on sourceforge.
- L.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In windows xp they are placed in the c:\ root directory
in linux the files are in /tmp directory and their names follow filexxxxxx pattern
with x a random ASCII character
Perhaps I 'm doing something wrong ?
Thanks
George
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
Djvused seams not working under windows vista.
I think the program tries to create a temporary file somewhere which can't not be done under vista.
command :
djvused c:\djvufiles\temp.djvu -e size
Error message
*** [1-11711] Failed to open 's3t0.': Invalid argument.
*** (..\..\..\libdjvu\ByteStream.cpp:695)
>>>>>
"s3t0" is the randomly created file name of the temporary file.
>>>>
The same program works on windows xp fine.
Does anybody has a solution ?
Thanks
George Pistikos
I now understand the problem.
Djvused creates a temp file when processing a single-page djvu file
and it uses the standard ansi function tmpnam().
Alas under Windows this function suggest a name in C:\ and they did not change it for Vista.
I changed the current CVS version to create the temp file
in the current directory under Windows.
That works better but is far from perfect.
Another problem is that the deletion of the temp file
often does not work because windows believes
that the file is in use. I am really not happy with windows right now.
A workaround would be to waste memory. I'll try that...
Works now.
The fix is in CVS.
I will hopefully generate a new version of the
windows binaries by the end of october.
- L
under linux the temp files are created in the tmp directory
and also often not deleted afterwords
Temp files remain when you interrupt djvused with ctrl+c.
Anyway the new version does it all in memory...
- L.
In principle, command djvused -e size should
not create a temporary file, so this is very bizarre.
Please try the newly released
version (djvulibre-3.5.21+djview-4.4)
on sourceforge.
- L.
I do use the last version of Djvulibre
I believe that djvused creates temporary files.
In windows xp they are placed in the c:\ root directory
in linux the files are in /tmp directory and their names follow filexxxxxx pattern
with x a random ASCII character
Perhaps I 'm doing something wrong ?
Thanks
George