WinRT Accessing same file twice giving Catastrophic failure error

2

I have created method to save InkManager in local Storage the code is as below. But When I am accessing it twice its me error...

Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))

What could be the possible error?

The code:

try
{
    StorageFile myMerge = await ApplicationData.Current.LocalFolder.CreateFileAsync("sign.png", CreationCollisionOption.ReplaceExisting);         

    using (IOutputStream signature = await myMerge.OpenAsync(FileAccessMode.ReadWrite))
    {
        if (signature != null)
        {
            await _inkManager.SaveAsync(signature);

            signature.Dispose();
        }
    }
    return myMerge;
}
c#
windows-8
stream
windows-runtime
outputstream
asked on Stack Overflow May 26, 2013 by Balraj Singh • edited Sep 29, 2016 by lokusking

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0