When InkManager Load an external PNG image file, system return exception of catastrophic failure RRS feed

  • Question

  • Hi,

    When I try to use the LoadAsync method of InkManager to load an external PNG image file, then the app return exception of catastrophic failure.
    I want to load an external PNG image file.

    Any kind of help will be appreciated.

    Code as follow:

    using (var stream = await inkFile.OpenAsync(Windows.Storage.FileAccessMode.Read))

         await _inkManager.LoadAsync(stream);// threw the exception of catastrophic failure.


    Tuesday, July 29, 2014 6:02 AM


  • It's supposed to be a GIF file that contains inkstroke information. From the documentation:


    Asynchronously loads all InkStroke objects from the specified stream to the InkStroke collection that is managed by the InkManager.

    Ink data is serialized as Ink Serialized Format (ISF) metadata and embedded into a Graphics Interchange Format (GIF) file.

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    • Marked as answer by yangyongacq Wednesday, July 30, 2014 2:17 AM
    Tuesday, July 29, 2014 2:52 PM