[Scummvm-devel] CHECK_HEAP ?

Travis Howell kirben at optusnet.com.au
Sat Sep 23 12:20:51 CEST 2006


From: "Kostas Nakos" <knakos at phys.uoa.gr>
> Travis Howell wrote:
>> From: "Max Horn" <max at quendi.de>
>>> is anybody / anything still using CHECK_HEAP, or can it be removed?
>>> It's only used in a few spots in the scumm engine and nowhere else
>>> anyway...
>>
>> It is used to help debug heap-related problems under Windows NT/2000/XP, 
>> by
>> checking for minimal consistency of the heap (check '_heapchk' on MSDN 
>> web
>> site for more detail). Considering how little it is used in ScummVM, it
>> might as well be removed, I have never had checkheap() error triggered
>> myself.
>
> It is also "used" by the Windows CE port for exactly the same reasons. I
> use the quotation marks as I can't seem to find a reference to it from
> anywhere. So I agree with Kirben on this, we may as well let it go.

Actually it doesn't seem to be used at all by the Windows CE port, as 
_HEAPOK and _heapchk() are just defined as zero, in io.h of the Windows CE 
backend. 





More information about the Scummvm-devel mailing list