The IDirectMusicLoader::ReleaseObject method releases the loader's reference to the object.
HRESULT ReleaseObject(
IDirectMusicObject * pObject
);
If the method succeeds, the return value is S_OK.
If it fails, the method may return one of the following error values:
E_POINTER |
DMUS_E_LOADER_OBJECTNOTFOUND |
ReleaseObject is the reciprocal of IDirectMusicLoader::CacheObject.
Objects can be cached explicitly by using the CacheObject method, or automatically by using the IDirectMusicLoader::EnableCache method.
To tell the loader to flush all objects of a particular type, call the IDirectMusicLoader::ClearCache method.
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
Header: Declared in dmusici.h.