Cooling of ashes from the combustion chamber by indirect heat exchangers