You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Install 32-bit Mono for Windows on a 64-bit machine.
Run the following test program in 32-bit Mono.
using System;using System.Diagnostics;staticclassTestProcessNames{publicstaticintMain(){foreach(var p in Process.GetProcesses()){
Console.WriteLine(p.Id);try{
Console.WriteLine(p.ProcessName);}catch(InvalidOperationException){if(p.HasExited)
Console.WriteLine("[Process Exited]");elsethrow;}}return0;}}
Current Behavior
The program aborts with an InvalidOperationException.
Expected Behavior
The program prints the ID and name of each running process on the system. .NET Framework is able to do this, though it requires compiling the executable as 32-bit only to properly test.
On which platforms did you notice this
[ ] macOS
[ ] Linux
[x] Windows
Version Used:
6.12.0
Stacktrace
[ERROR] FATAL UNHANDLED EXCEPTION: System.InvalidOperationException: Process has exited or is inaccessible, so the requested information is not available.
at System.Diagnostics.Process.get_ProcessName () [0x0002d] in <2833956e84fa47a69fb5c0a42a95869c>:0
at (wrapper remoting-invoke-with-check) System.Diagnostics.Process.get_ProcessName()
at TestProcessNames.Main () [0x0001d] in <1f41c1960fde40e2b33c1ef305d4af47>:0
The text was updated successfully, but these errors were encountered:
Steps to Reproduce
Current Behavior
The program aborts with an InvalidOperationException.
Expected Behavior
The program prints the ID and name of each running process on the system. .NET Framework is able to do this, though it requires compiling the executable as 32-bit only to properly test.
On which platforms did you notice this
[ ] macOS
[ ] Linux
[x] Windows
Version Used:
6.12.0
Stacktrace
The text was updated successfully, but these errors were encountered: