I randomly get this error (D2DERR_RECREATE_TARGET) many times an hour and after reading on that error, it seems I can't avoid it. I am using SharpDX which is "an open-source project delivering the full DirectX API under the .Net platform".
According to the microsoft's documentation: "Direct2D signals a lost device by returning the error code D2DERR_RECREATE_TARGET from the EndDraw method. If you receive this error code, you must re-create the render target and all device-dependent resources."
Does that really mean I need to keep track of every device-dependent resources my render target creates (There are a lot!) and stops using or am I getting it wrong? Or perhaps someone here knows a way around this error?