C#
C#

help

Root Question Message

TotechsStrypper
TotechsStrypper8/18/2022
storageFile.CopyAsync break being used by another process

Hi I use the
 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 ?
Yawnder
Yawnder8/18/2022
I would say you should instead close the handle properly. What is the type of storageFile? Does it implement IDisposable?
Yawnder
Yawnder8/18/2022
Nevermind, you asked the same question in multiple posts...
ContactFrequently Asked QuestionsJoin The DiscordBugs & Feature RequestsTerms & Privacy