microsoft / GDK

Microsoft Public GDK
http://aka.ms/gamedevdocs
Other
1.48k stars 99 forks source link

Function RemoveDirectoryW() sometime fails with error 0x1f (ERROR_GEN_FAILURE) #29

Closed alex-klyushkin closed 1 year ago

alex-klyushkin commented 1 year ago

Hello everyone! In out application for XBOX series X we have two threads. First thread does a lot of asynchronous file read operations. Size of most files about 1 KB. At same time second thread call RemoveDirectoryW() function several times and sometime this function fails. GetLastError() returns 0x1f (ERROR_GEN_FAILURE). It looks like system or disk can't process this remove request, because there are a lot of ansync reads at first thread. Is it known issue? And is there any workaround?

With best regards, Alexey.