Hi all,
We’re investigating a crash on iOS where it seems that a file that is being deleted (temporary buffer) might not be deleted within the same frame as the request to delete it is being made; we get an exception thrown when we try to use StreamWriter (AppendText) with the same file. It’s hard to tell exactly if the re-use is attempted in the same frame as the delete but it shouldn’t be.
When we changed the code to generate temporary file names with a longer period the problem went away; i.e we’ve spaced out the distance between a delete and a re use.
Does anybody know if File.Delete could take longer to complete than a couple of frames? It’s a stab in the dark but this one is a bit puzzling…