Hello,
Currently I'm developing an application for a Windows CE 4.0 device. This application contains a lot of different forms. The application jumps from one form to another. And I close the forms when I go to another form but I don't think it's the best way to close them.
Sometimes, at random moments, I receive a StackOverflowEx ception and on the device I see a lot of forms closing, you see the behavior that you normally get when you form a close. So I guess it's because there are still too many forms open to manage.
When I go from one form to another I do it like this.
this.close();
Form1 frm1 = new Form1();
frm1.ShowDialog ();
The problem is that the current form isn't closed right away. It's still there somewhere..Only when the new form is closed the older form is closed..
It feels like this is a stupid problem, sounds easy to fix but I can't think of a fix right away. Is there a proper way of doing form management withing a Windows CE application.
For the record, I'm developing using .NET1.1
Kind regards,
Currently I'm developing an application for a Windows CE 4.0 device. This application contains a lot of different forms. The application jumps from one form to another. And I close the forms when I go to another form but I don't think it's the best way to close them.
Sometimes, at random moments, I receive a StackOverflowEx ception and on the device I see a lot of forms closing, you see the behavior that you normally get when you form a close. So I guess it's because there are still too many forms open to manage.
When I go from one form to another I do it like this.
this.close();
Form1 frm1 = new Form1();
frm1.ShowDialog ();
The problem is that the current form isn't closed right away. It's still there somewhere..Only when the new form is closed the older form is closed..
It feels like this is a stupid problem, sounds easy to fix but I can't think of a fix right away. Is there a proper way of doing form management withing a Windows CE application.
For the record, I'm developing using .NET1.1
Kind regards,
Comment