storageFile.CopyAsync break being used by another process

Hi I use the
var copiedStorageFile = await storageFile.CopyAsync(ApplicationData.Current.TemporaryFolder, storageFile.Name, NameCollisionOption.ReplaceExisting);
var copiedStorageFile = await storageFile.CopyAsync(ApplicationData.Current.TemporaryFolder, storageFile.Name, NameCollisionOption.ReplaceExisting);
to copy the image for cropping process when I use it again I tell me that the folder is being used by other process Is there a way to force all process close when I do this ?
1 Reply
Yawnder
Yawnder2y ago
I would say you should instead close the handle properly. What is the type of storageFile? Does it implement IDisposable? Nevermind, you asked the same question in multiple posts...