2

時々、次のエラーが発生します。

同じキーを持つアイテムが既に追加されています

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

なぜこれが起こるのか誰にも分かりますか?

4

1 に答える 1