How to multi-thread Windows.Storage.StorageFile file access in WinUI #1412
Closed
HEIC-to-JPEG-Dev
started this conversation in
General
Replies: 2 comments 3 replies
-
@HEIC-to-JPEG-Dev Can you provide more details on the error code / message that you are seeing it crash with. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Pretty sure csWinRT is dead - no responses from Microsoft on issues & bugs raised last year, no roadmap. I think all efforts are going into WPF now ? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've tried to multi-thread read files using StorageFile (an array of 100 files). But this crashes WinUI with an obscure error. Run the same code sequentualy and it works, just slowly.
In my scenario I actually have about 100,000 files that I need some basic information from. These files are placeholder files and indexed so I need to be careful how I look at them (I don't want them to be hydrated). StorageFile can get the information and I can use the file system indexer for precaching, but going through them one at a time is too time consuming.
Beta Was this translation helpful? Give feedback.
All reactions