in reply to Sanely modifying running code
Would it make more sense to have a babysitter app running that launches the working app, checks for updates, signals the old app to stop accepting new work (and terminate, if that's appropriate), and launches a new updated app?
Given your suggested approach, what are the implications if there's a bug in the update?
Can the new functionality be returned as a data structure? If the file is updated, run it to get the new data structure. Run some tests against it, then replace the old data structure with the new. On the other hand, if the tests fail, keep the old data structure. (Replacing symbol table entries in a module is easy -- replacing other stuff is problematic.)
-QM
--
Quantum Mechanics: The dreams stuff is made of
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Sanely modifying running code
by Limbic~Region (Chancellor) on Mar 14, 2006 at 17:04 UTC | |
by QM (Parson) on Mar 14, 2006 at 17:14 UTC |