Re: restart application
- From: "Maarten Wiltink" <maarten@xxxxxxxxxxxxxxxxxx>
- Date: Mon, 27 Nov 2006 09:11:01 +0100
"Jamie" <jamie_ka1lpa_not_valid_after_ka1lpa_@xxxxxxxxxxx> wrote in message
news:D0oah.37$t93.8@xxxxxxxxxxxxxxx
Maarten Wiltink wrote:[...]
[re-initialising an application] should be easy. Have a method in
the main form class that resets all fields to their default/empty
values, reloads data, handles command line parameters, etcetera.
how about if you need to reload different versions of DLL's?
That might come in under 'reload data'. Or even under resetting fields
if their values are loaded from configuration files or the registry -
some of those values may have Consequences.
Properties may fire events when their values are changed. One consequence
of that is that when the backing field is initialised from a constructor
(as it always should be), the event should also fire to ensure that the
object is in a consistent state. This applies whether or not changing the
value of the field changed the value of the property.
So in a plugin scheme, for example, the reinit method (again, I suggest
naming it 'Create') should gracefully unload all loaded plugins, emptying
the list; free and recreate the list; enumerate and reload plugins,
populating the list.
If loading a plugin registers it with the list, the code would be in the
'reload data' section; if adding a plugin to the list causes it to be
loaded, the code would be under 'resetting fields'.
Groetjes,
Maarten Wiltink
.
- References:
- restart application
- From: jimbo
- Re: restart application
- From: Ingolf
- Re: restart application
- From: Jamie
- Re: restart application
- From: Rob Kennedy
- Re: restart application
- From: Maarten Wiltink
- Re: restart application
- From: Jamie
- restart application
- Prev by Date: Re: multi dimensional array example
- Next by Date: Re: multi dimensional array example
- Previous by thread: Re: restart application
- Next by thread: TimeSetEvent
- Index(es):