-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
Description
The initial issue reported in https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1880935.
WPF application failed to run with large resources(>1.9G).
Reproduction Steps
Repro Steps:
- Create a WPF Core project or directly download the project WpfApp1.zip
- Add a new folder: images
- Add a large image to the images folder, such as 50M.(You can download bmp file from https://filesamples.com/formats/bmp)
- Copy and paste the images 37 times, make the images folder size about 1.9 GB
- Press F5 to run
Expected behavior
Application runs successfully.
Actual behavior
- If the images folder size is about 1.9GB, application will exit automatically without error.
- If the images folder size is larger than 2GB, error CS1566: "Error reading resource "WpfApp2.g.resources" -- Specified argument was out of the range of valid values." will display in Error List after rebuilding.

- If the images folder size is smaller than 1.85GB, application works fine.
Regression?
No response
Known Workarounds
No response
Impact
No response
Configuration
No response
Other information
No response
lindexi
Metadata
Metadata
Assignees
Labels
No labels