My windows mobile application is being closed after catching exception from other Form. I narrowed problem to such example:
Form1:
private void button1_Click(object sender, EventArgs e)
{
try
{
Form2 f = new Form2();
f.ShowDialog();
}
catch (MyException exc)
{
}
}
and in Form2:
private void button1_Click(object sender, EventArgs e)
{
throw new MyException();
}
This code works fine under windows 8 but windows mobile 6.5 application is being closed. Debugger shows that Application.Run(new Form1()); is just ended. I am confused. Why is it happened ?