After I run it the result seems fine. However, if I, for example, try to
delete the original files pointed to by files_ (the files themselves, that
is) I run into them being locked. What needs to be done to unlock them?_
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When I said "delete" I meant "inside the code, right after calling the above
function". Of course, after the program that uses this function finishes, all
the locks are removed. That's why there was no problem with djvm.exe, it never
does anything with the files it uses for concatenation after the concatenation
is done.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Dear developers,
I've just started playing with djvulibre. I modified code from djvm.cpp which
concatenates files as follows:
After I run it the result seems fine. However, if I, for example, try to
delete the original files pointed to by files_ (the files themselves, that
is) I run into them being locked. What needs to be done to unlock them?_
When I said "delete" I meant "inside the code, right after calling the above
function". Of course, after the program that uses this function finishes, all
the locks are removed. That's why there was no problem with djvm.exe, it never
does anything with the files it uses for concatenation after the concatenation
is done.
Try calling DataPool::close_all() before removing…
- L.
Thanks! I haven't yet had time to continue working on this. But I'll write
the results when I do.
If DataPool::close_all() not work, try calling