G
Guest
Platform: WinCE 4.2, .NET CF, C#
I am working on a wizard based application which consists basically of an
"Engine" class which handles the creation/display/disposing of the various
"wizard" forms.
All the wizard forms are derived from the same base class which in turn is
derived from System.Windows.Forms.Form.
The problem I have noticed is that Engine class's Dispose method is not
getting called when the application is closed via the taskbar or the Debugger
is stopped.
I can solve this by adding an event handler for the Form.Closing event and
explicitly call the Engine.Dispose method which will work when the app is
shutdown via the taskbar but not when the Debugger is stopped. This is not
acceptable because the Engine.Dispose method is now called whenever a wizard
form is closed - which is not acceptable.
What I want is that when the applicaion is closed manually by the user or
when the Debugger is stopped that the Engine's Dispose method is called.
TIA,
Mark
I am working on a wizard based application which consists basically of an
"Engine" class which handles the creation/display/disposing of the various
"wizard" forms.
All the wizard forms are derived from the same base class which in turn is
derived from System.Windows.Forms.Form.
The problem I have noticed is that Engine class's Dispose method is not
getting called when the application is closed via the taskbar or the Debugger
is stopped.
I can solve this by adding an event handler for the Form.Closing event and
explicitly call the Engine.Dispose method which will work when the app is
shutdown via the taskbar but not when the Debugger is stopped. This is not
acceptable because the Engine.Dispose method is now called whenever a wizard
form is closed - which is not acceptable.
What I want is that when the applicaion is closed manually by the user or
when the Debugger is stopped that the Engine's Dispose method is called.
TIA,
Mark