Hello everyone.
The Mixed Reality Forums here are no longer being used or maintained.
There are a few other places we would like to direct you to for support, both from Microsoft and from the community.
The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.
For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.
If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.
And always feel free to hit us up on Twitter @MxdRealityDev.
The Mixed Reality Forums here are no longer being used or maintained.
There are a few other places we would like to direct you to for support, both from Microsoft and from the community.
The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.
For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.
If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.
And always feel free to hit us up on Twitter @MxdRealityDev.
Read a file line by line
Hi,
I actually design an application where the users can load points cloud in AR. It works well will small file but when I want to open larger file I've got "Out of memory" error. I Suppose it's because the Hololens can't allocate enough memory in one block. It happen for example with a file of 100Mo even if I have 1Go of RAM available.
I actually use "UnityEngine.Windows.File.ReadAllBytes(filePath);", is it possible to read the file line by line to avoid allocate lot of memory ?
0
Answers
You could try StreamReader or any other file stream reader. Though I am not sure if they load all of the bytes in first or not.
Taqtile
Ok then I read character by character and detect new line by myself ?
Cause I can't see any ReadLine() function with UWP.
This isn't available?
https://msdn.microsoft.com/en-us/library/system.io.streamreader.readline(v=vs.110).aspx
Taqtile
StreamReader isn't available. Only DataReader is available https://docs.microsoft.com/en-us/uwp/api/windows.storage.streams.datareader .