Patent ID: 8330985

Claim:
An image forming device, comprising: a reading unit configured to read image data; an image data storage unit configured to store the image data obtained by the reading unit; a vacancy waiting unit configured to, when allocating a storage area for storing the image data in the image data storage unit, wait until a storage size of a vacancy in the image data storage unit becomes greater than a predetermined value when allocation of the storage area fails; a failure processing unit configured to, when allocating the storage area for storing the image data in the image data storage unit, display a failure message when allocation of the storage area fails; and a control unit configured to determine an image forming condition in the image forming device, and to select, based on the determined image forming condition, between a first method and a second method to be performed in a case of the failure in the allocation of the storage area, the first method causing the vacancy waiting unit to wait until the storage size of the vacancy in the image data storage unit becomes greater than the predetermined value and the second method causing the failure processing unit to display the failure message.