adobe / adobe/PDFServices.NET.SDK.Samples
Filed locked after calling FileRef.CreateFromLocalFile
- Ngôn ngữ chính
- HTML
- Star
- 47
- Fork
- 23
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
Using Export To Docx I want to delete the original PDF file after calling the following:
FileRef sourceFileRef = FileRef.CreateFromLocalFile();
After Creating PDF from local file. I want to delete the original file but a lock remains on the file.
When I try to delete the file with File.Delete, an exception is thrown that there is a lock on the file from another process.
I cannot dispose of the the FileRef and even after setting the object to null, the lock remains.
Hướng dẫn đóng góp
Hướng nghiên cứu
Issue đề cập đến FileRef.CreateFromLocalFile và File.Delete; trước tiên hãy tái hiện chuỗi đó với luồng Export To Docx và quan sát thời điểm PDF gốc vẫn bị khóa. Được xem là hoàn tất khi có thể xóa tệp gốc sau khi tạo PDF mà không gặp ngoại lệ lock, đồng thời đã xác định được hành vi dọn dẹp FileRef cần thiết.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- csharp
- Lĩnh vực
- backend
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 25/100