-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.NET7 RC2 PrintDocument exception. #77340
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
Tagging subscribers to this area: @dotnet/area-system-drawing Issue DetailsDescription.NET7(x86) PrintDocument will throw AccessViolationException when execute to Print, x64 is ok. Reproduction Steps
PrintDocument pd = new PrintDocument();
pd.PrinterSettings.PrinterName = "Microsoft Print to PDF";
pd.PrintController = new StandardPrintController();
pd.PrintPage += (sender, e) => { };
pd.Print();
Expected behaviorPrint normally. Actual behaviorThrow AccessViolationException when execute to Print. Regression?No response Known WorkaroundsDowngrade to .NET6 sdk and packages. ConfigurationNo response Other informationNo response
|
Thank you for reporting the issue. It is duplicate of #76538. The fix will be included in .NET 7. |
Description
.NET7(x86) PrintDocument will throw AccessViolationException when execute to Print, x64 is ok.
Reproduction Steps
System.AccessViolationException:“Attempted to read or write protected memory. This is often an indication that other memory is corrupt.”
Expected behavior
Print normally.
Actual behavior
Throw AccessViolationException when execute to Print.
Regression?
No response
Known Workarounds
Downgrade to .NET6 sdk and packages.
Configuration
No response
Other information
No response
The text was updated successfully, but these errors were encountered: