1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<HTML>
3
4<HEAD>
5<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
6<META http-equiv="Content-Style-Type" content="text/css">
7<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 8.0.0.0 for Windows">
8
9<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css">
10
11	<!-- �^�C�g���� -->
12	<TITLE>MEMCheckExpHeap</TITLE>
13
14</HEAD>
15
16
17<BODY>
18
19
20<!-- �^�C�g���� -->
21<H1>MEMCheckExpHeap</H1>
22
23
24<H2>C Specification</H2>
25<PRE class="construction">#include &lt;revolution/mem.h&gt;
26
27BOOL MEMCheckExpHeap(
28MEMHeapHandle    heap,
29u32               optFlag );</PRE>
30
31
32<H2>Arguments</H2>
33<TABLE border="1">
34
35    <TR>
36	<TD><STRONG><EM><CODE>heap</CODE></EM></STRONG></TD>
37	<TD>Expanded heap handle.</TD>
38</TR>
39    <TR>
40<TD><STRONG><EM><CODE>optFlag</CODE></EM></STRONG></TD>
41<TD>Check options (explained below).</TD>
42    </TR>
43  </TABLE>
44
45
46<H2>Return Values</H2>
47<P>Returns <CODE>TRUE</CODE> if no errors are found in the expanded heap. Otherwise returns <CODE>FALSE</CODE>.</P>
48<H2>Description</H2>
49<P>This function checks whether the expanded heap is corrupted. Specifically, this function checks whether the management region for each memory block in the expanded heap is normal.</P>
50<P>Specify the check option with the <STRONG><EM><CODE>optFlag</CODE></EM></STRONG> argument.</P>
51<TABLE border="1">
52
53    <TR>
54<TD><CODE>MEM_HEAP_ERROR_PRINT</CODE></TD>
55<TD>If an error is found in a heap, the error content is output using the <CODE>OSReport()</CODE> function.</TD>
56    </TR>
57
58</TABLE>
59<P>This function is for debugging. The final ROM version (<code>FINALROM</code>) library does not do anything and always returns <code>TRUE</code>.</P>
60<H2>See Also</H2>
61<P class="reference"><A href="MEMCheckForMBlockExpHeap.html"><CODE>MEMCheckForMBlockExpHeap</CODE></A></P>
62
63
64<H2>Revision History</H2>
65<P>03/01/2006 Initial version.</P>
66
67
68</BODY>
69</HTML>
70