Memory mapping a file on a SMB file share causes it to be transferred in its entirety before the call returns. For large files, this causes the application to lock up for a long period of time. How do I fix this?
"Use X instead of SMB" is a valid answer.
Edit: Any application, any file. I'm not trying to solve a specific case. Memory mapping a file is a way of opening it so that it appears to the application as part of the working memory - you access the file as if it's an array.