Microsoft DirectX 8.1 (Visual Basic) |
Invokes the resource manager to free memory.
object.ResourceManagerDiscardBytes( _ NumberOfBytes As Long)
If the method fails, an error is raised and Err.Number can be set to D3DERR_INVALIDCALL.
For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.
The resource manager frees up memory allocations until the number of target bytes is reached. The resource manager follows a least-recently-used (LRU) priority technique.
Note that the number of bytes freed are not guaranteed to be contiguous, so you might not be able to create a resource that takes the number of bytes specified in Bytes after calling this method.