Here is my code:
public sealed partial class MainPage : Page
{
InkCanvas[] arrInkCanvas = null;
public MainPage()
{
this.InitializeComponent();
int i = 0;
arrInkCanvas = new InkCanvas[1000];
try
{
for (i = 0; i < 1000; i++)
{
arrInkCanvas[i] = new InkCanvas();
}
}
catch (Exception ex)
{
}
}
}
When i run this code in WPF app there's no problem , but in UWP it throws exception : "Insufficient memory to continue the execution of the program."
Is it bugs or something can anyone tells me ?
Thanks.