-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
Enhancement RequestedProduct code improvement that does NOT require public API changes/additionsProduct code improvement that does NOT require public API changes/additions
Milestone
Description
- .NET Core Version: 3.1.300
- Windows version: 10.0.18362
- Does the bug reproduce also in WPF for .NET Framework 4.8?: Yes
Problem description:
When we use RenderTargetBitmap to take the control screenshots, if our do it too frequent and too fast, then we will find that the framework throws an exception.
Actual behavior:
System.Runtime.InteropServices.COMException: MILERR_WIN32ERROR
System.Runtime.InteropServices.COMException (0x88980003): MILERR_WIN32ERROR (Exception from HRESULT:0x88980003)
in System.Windows.Media.Imaging.RenderTargetBitmap.FinalizeCreation()
in System.Windows.Media.Imaging.RenderTargetBitmap..ctor(Int32 pixelWidth, Int32 pixelHeight, Double dpiX, Double dpiY, PixelFormat pixelFormat)
Expected behavior:
No exception
Minimal repro:
Metadata
Metadata
Assignees
Labels
Enhancement RequestedProduct code improvement that does NOT require public API changes/additionsProduct code improvement that does NOT require public API changes/additions