You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 of InkCanvas.
Run the app and observe that it crashes with an OutOfMemoryException after initializing InkCanvas 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
The text was updated successfully, but these errors were encountered:
VishalOmprasad
changed the title
OutOfMemoryException when repeatedly initializing InkCanvas
OutOfMemoryException when repeatedly initializing InkCanvas in UWP
Oct 14, 2024
Describe the bug
In UWP, initializing a new instance of
InkCanvas
more than 127 times results in anOutOfMemoryException
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
Button
control.for
loop to repeatedly initialize new instances ofInkCanvas
.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
The text was updated successfully, but these errors were encountered: