| Previous | Next |
| D2DERR_NO_HARDWARE_DEVICE | D2DERR_TOO_MANY_SHADER_ELEMENTS |
D2DERR_RECREATE_TARGET
D2DERR_RECREATE_TARGET means that Direct2D detected a recoverable presentation or device-loss condition. The render target is no longer valid, and any resources created from that target may also be invalid.
Required recovery
- Discard the render target and all resources that depend on it, such as target-created brushes, bitmaps, and compatible targets.
- Create a new render target and rebuild those device-dependent resources.
- Render the whole frame again after recreation rather than trying to continue the interrupted frame.
Microsoft documents this result as the normal recovery signal from EndDraw; retrying with the old target is not sufficient.
Microsoft: handling device loss in Direct2D
Looking for a different code? Search another status or error code.