There are provided an image forming apparatus, process cartridge, and storage medium which, if an image forming stop factor occurs in a cartridge of a certain color, enable image forming using a cartridge of another color and can increase the utilization efficiency and operability of the image forming apparatus. The image forming apparatus has a plurality of detachable process cartridges (8M, 8C, 8Y, 8K) including image carriers (photosensitive drums: 9M, 9C, 9Y, 9K) on which latent images are to be formed and developing units (12M, 12C, 12Y, 12K) which develop the latent images. When a replacement timing for at least one of the process cartridges has come, only the developing unit of the process cartridge (8K) whose replacement timing has not come is driven in accordance with the state of the cartridge whose replacement timing has come to perform image forming.