18.12.2012 Views

Configuration - Merge Healthcare

Configuration - Merge Healthcare

Configuration - Merge Healthcare

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Merge</strong> DICOM Toolkit Reference Manual<br />

24<br />

See Also<br />

MC_Set_Value_From_Function MC_Get_Value_To_Function<br />

MC_Cleanup_Memory<br />

Releases memory allocated but not in use by the <strong>Merge</strong> DICOM Toolkit library.<br />

Synopsis<br />

#include “mergecom.h”<br />

MC_STATUS MC_Cleanup_Memory (int Timeout)<br />

Timeout Maximum time, in seconds, that this function should attempt to<br />

cleanup memory.<br />

Remarks<br />

MC_Cleanup_Memory allows an application to reduce the amount of memory<br />

consumed by the toolkit. The <strong>Merge</strong> toolkit uses an internal memory<br />

management system to increase performance. This increase in performance is<br />

at the expense of keeping allocated memory block available by not freeing them<br />

to the operating system. This call allows memory blocks not in use to be returned<br />

to the operating system.<br />

This call can take a significant amount of time if a large amount of memory is to<br />

be freed. The timeout can be used to make incremental improvements in the<br />

memory usage. Calls to this function pick up where the previous call left off. If<br />

the timeout expires before the function is complete, MC_TIMEOUT is returned<br />

Return Value<br />

One of the enumerated MC_STATUS codes defined in “mcstatus.h”:<br />

Value Meaning<br />

MC_NORMAL_COMPLETION The function completed<br />

MC_LIBRARY_NOT_INITIALIZED<br />

normally.<br />

Call made prior to library initialization<br />

MC_TIMEOUT The timeout expired before the entire<br />

cleanup was finished.<br />

MC_VALUE_OUT_OF_RANGE The timeout was less then 0.<br />

See Also

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!