Win2D 1.12.0 - bugfixes and error messages


Win2D version 1.12.0 is now available on NuGet (for Windows 10 or Windows / Phone 8.1) and GitHub.

There are no new features in this release, but a bunch of small improvements:

  • Fixed CanvasDrawingSession.Close to release all resources it was holding
  • Fixed lost device handling to call RoClearError, so later unrelated exceptions don’t incorrectly appear to be lost devices
  • Fixed CanvasBitmap.[Get|Set]Pixel[Bytes|Colors] to handle the data hazard if a bitmap is drawn in between being changed
  • Fixed CanvasBitmap.[Get|Set]PixelBytes to work with A8 format on feature level 9.x devices
  • CanvasDevice.GetSharedDevice now reacts more sensibly if the shared device is closed, or if CanvasDevice.DebugLevel is changed out from under it
  • CanvasAnimatedControl uses the RaiseException trick to give the game loop thread a human readable name

We also improved some exception error messages:

  • When trying to create a bitmap, rendertarget, swapchain, or image source larger than the max GPU texture size
  • Attempting to create multiple simultaneous drawing sessions on the same target
  • Calling CanvasImageSource or CanvasVirtualImageSource CreateDrawingSession on non-UI thread

And made Example Gallery better:

  • Ink Example defers calling EndDry, to avoid flicker where wet ink could be turned off before the dry ink is visible
  • Simplified the ink and D3D interop example code

Plus, various small documentation improvements.

Enjoy, and a happy New Year to you all!


Comments (2)

  1. Evgeny says:

    After update, my app can't pass "Windows App Certification Kit" tests. The error is:

    API RoClearError in api-ms-win-core-winrt-error-l1-1-1.dll not supported. Microsoft.Graphics.Canvas.dll call this API

  2. > After update, my app can't pass "Windows App Certification Kit" tests.

    This is a known issue:  see github.com/.../224

Skip to main content