Microsoft DirectX 9.0

IDirectMusicLoader8::CollectGarbage

The CollectGarbage method removes from the cache objects that are no longer in use.

Syntax

CollectGarbage();  

Parameters

None.

Return Values

None.

Remarks

When an application calls IDirectMusicLoader8::ReleaseObject, the object is removed from the cache, and any objects it references become candidates for removal. IDirectMusicLoader8::CollectGarbage finds cached objects that are no longer being used by other objects, removes them from the cache, and releases them from memory.

Requirements

  Header: Declared in dmusici.h.

See Also