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.

I get a real troubling error every time I want to load data from a file I have saved

I adapted the DataGramSocket example just to record errors I find when runnning my code. I am using a Hololens Emulator currently and the error message I get is:-

Error found when trying to read file content for: hololens_device1.csv. > The handle with which this oplock was associated has now closed. The oplock is now broken. (Exception from HRESULT: 080070323).

My code snippet looks like this:-

static async public void load_file_content_from_permanent_store(string filename)
    {
        readfilecontent = "";
        string token = "";
        readfile = null;
        try
        {
            token = Find_FALtoken_from_accesslist_metadata(filename);
            if (token.Length == 0) return;
        }
        catch (Exception e1)
        {
            errmess = "Error found when trying to find the token for: " + filename + " " + e1.Message;
            return;
        }
        try
        {
            readfile = await StorageApplicationPermissions.FutureAccessList.GetFileAsync(token);
        }
        catch(Exception e2)
        {
           errmess = "Error found when trying to file for: " + filename + " " + e2.Message;
            return;

        }
        if (readfile == null) return;
        try
        { 
            readfilecontent = await FileIO.ReadTextAsync(readfile);
        }
        catch(Exception e3)
        {
            errmess = "Error found when trying to read file content for: " + filename + " " + e3.Message;
            return;

        }

Is there anyone out there with the expertise to work out what I am possibly doing wrong here? It use to work fine, now it doesn't.

Thanks

Tagged:
Sign In or Register to comment.