Bug 24898 - EnumProcess raises Exception
Summary: EnumProcess raises Exception
Status: NEEDINFO
Alias: None
Product: Class Libraries
Classification: Mono
Component: System (show other bugs)
Version: 3.8.0
Hardware: Other Linux
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-11-27 13:09 UTC by Harry May
Modified: 2014-12-01 11:47 UTC (History)
2 users (show)

See Also:
Tags:
Is this bug a regression?: ---
Last known good build:


Attachments

Description Harry May 2014-11-27 13:09:06 UTC
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
VS2012

this problem was not existing when I compiled for .NET 2.0
Comment 1 João Matos 2014-12-01 11:47:12 UTC
Hi,

Can you please provide a testcase to try to reproduce the issue?

Note You need to log in before you can comment on or make changes to this bug.