Previous: The Module-Calling Cycle
Up: Converting Attract Mode into Main Program
Next: State Machine
Previous Page: The Module-Calling Cycle
Next Page: State Machine

Cleaning up after Modules

In multiple-program format, each module program not only gets automatic initialization, it also has the operating system cleaning up after it when it exits. In monoprogram format, this benefit is also lost. It is therefore important for the menu section of the attract to close certain things down after each module returns.

Educational Technology Center
Dept. of Info. and Comp.Sci.
Univ. of California, Irvine
92717, CA, USA