An image forming apparatus of the present invention includes a main
controller and an engine controller. When an error occurs in an image
forming engine, the engine controller sends to the main controller status
information representative of original conditions set up before the error
and error information representative of the error and causes a second
relay to interrupt the application of an AC voltage to a heater
controller. The main controller stores the received status information in
its memory and turns off a first relay to thereby interrupt the
application of the AC voltage to a second power supply. After recovery
from the error, the main controller again turns on the first relay and
thereby causes the engine controller to restore the original conditions
represented by the status information.