UWP InkCanvas crash

Madhu 96 Reputation points


In our UWP app we have used the InkCanvas in several pages. In one machine the app crashes giving the attached error message. Cannot create instance of type 'Windows.UI.Xaml.Controls.InkCanvas'
Noticed this crashing only in one machine so far and that also seems to happen only in Release mode.


In the xaml we have it defined like this

and we have a Paint bar which was show in several pages. So from each page we set the inkcanvas to the paint bar like this.
PaintBar.getPaintBar().setInkCanvas(inkCanvas); and inside that PaintBar class we use the inkcanvas to draw. So we can draw while in different pages.

For this user it seems to crash the first time they go to a page with the InkCanvas.
Could it be the same reason as this? If so how can we solve it?

Difficult to figure out what to do, since this doesn't happen in our computers.


Universal Windows Platform (UWP)
{count} votes