Open
Description
Describe the bug
In UWP, initializing a new instance of InkCanvas
more than 127 times results in an OutOfMemoryException
with the message: "Insufficient memory to continue the execution of the program."
Link to public repository (that contains issue reproducible sample): https://github.com/VishalOmprasad/InkCanvas-Issue-UWP.
Steps to reproduce the bug
- Create a new UWP project.
- Add a
Button
control. - In the Button.Click event handler, include a
for
loop to repeatedly initialize new instances ofInkCanvas
. - Run the app and observe that it crashes with an
OutOfMemoryException
after initializingInkCanvas
more than 127 times.
Expected behavior
The app should not crash with OutOfMemoryException
.
Screenshots
No response
NuGet package version
None
Windows version
No response
Additional context
No response