Open MichalPetryka opened 3 months ago
Tagging subscribers to this area: @dotnet/area-system-diagnostics-process See info in area-owners.md if you want to be subscribed.
The docs here should likely be changed to just say something like Win32Exception: An error occurred during the native system call to query process information
There is no way to document all potential cases that native errors for and those can expand over time based on changes that are outside the control of .NET
I agree with @tannergooding , we should update the docs.
Description
Accessing
MainModule
after process exit throws an exception that doesn't match the documentation. The code should either be changed to detect that case or the docs should be changed.Reproduction Steps
Expected behavior
Throws
InvalidOperationException
as per docs.Actual behavior
Throws:
Regression?
Not sure.
Known Workarounds
No response
Configuration
Windows 10.0.19045 X64 .NET 9
Other information
No response