Microsoft DirectX 8.0 (Visual Basic)

Lost Devices and Locking Operations

Internally, Microsoft® Direct3D® does enough work to ensure that a lock operation will succeed after a device is lost. However, it is not guaranteed that the video-memory resource's data will be accurate during the lock operation. It is guaranteed that no error code will be returned. This allows applications to be written without concern for device loss during a lock operation.

For more information, see Lost Devices and Retrieved Data.