Microsoft Windows CE 3.0  

Releasing Surfaces

This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Like all COM interfaces, you must release surfaces by calling their IDirectDrawSurface5::Releasemethod when you no longer need them.

Each surface you individually create must be explicitly released. However, if you implicitly created multiple surfaces with a single call to IDirectDraw4::CreateSurface, such as a flipping chain, you need only release the front buffer. In this case, any pointers you might have to back buffer surfaces are implicitly released and can no longer be used.

Explicitly releasing a back buffer surface doesn't affect the reference count of the other surfaces in the chain.

 Last updated on Tuesday, May 18, 2004

© 2004 Microsoft Corporation. All rights reserved.