adobe / adobe/PDFServices.NET.SDK.Samples

Filed locked after calling FileRef.CreateFromLocalFile

オープン
#27 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
HTML
スター
47
フォーク
23
PR マージ指標
30日以内にマージされた PR はありません

説明

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.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Issue では FileRef.CreateFromLocalFile と File.Delete が挙げられています。まず、Export To Docx フローでそのシーケンスを再現し、元の PDF がいつロックされたままになるかを確認してください。PDF 作成後に元のファイルを lock 例外なしで削除でき、必要な FileRef のクリーンアップ動作が特定できれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
csharp
領域
backend
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。