I am developing with Visual Studio and then copying the exe to Linux and start it woth mono.
This runs without any problems until now.
To see if a process is running I use System.Diagnostics.Process.GetProcessesByName("somename");
90% of the time this function works fine, but sometimes
it raises an exception "This System does not support EnumProcesses".
When it raises this exception, then it does not work any longer, every call to GetProcessesByName raises this exception again.
I have to stop and restart the application, then it works for some hours before it stops again.
Compiled for .NET 4.5
this problem was not existing when I compiled for .NET 2.0
Can you please provide a testcase to try to reproduce the issue?