時々、次のエラーが発生します。
同じキーを持つアイテムが既に追加されています
Microsoft.WindowsAPICodePack.Shell.PropertySystem
. Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties.PropertySystemVideo.get_FrameWidth() の ShellPropertyDescriptionsCache.GetPropertyDescription (PropertyKey キー)
FrameWidth
これは、ShellFileを読み込もうとしているときにランダムに発生します:
ShellFile shellFile = ShellFile.FromFilePath(_file.FullPath);
if (shellFile.Properties.System.Video.FrameWidth.Value != null) //<- fails here
なぜこれが起こるのか誰にも分かりますか?