Bugs in System.Diagnostics.Process Class

added by mcnamaragio
12/20/2011 9:50:31 AM

4 Kicks, 117 Views

While working on an application which makes use of Process class I found several bugs which occur in special conditions. More specifically accessing StartTime or HasExited properties causes a Win32Exception with NativeErrorCode equal to five. This indicates that the exception is caused by not having enough rights to retrieve the required information. The exception occurs under the following conditions


3 comments

dpeterson
12/20/2011 9:50:09 AM
Interesting, have you submitted the bug to Connect yet?

mcnamaragio
12/20/2011 11:38:05 AM

dpeterson
12/20/2011 12:26:20 PM
Sweet, nice find.

mcnamaragio
12/22/2011 11:50:12 AM
I have also opened a new feature request related to my new blog post about elevated process path: https://connect.microsoft.com/VisualStudio/feedback/details/595717/add-path-property-to-process-class-so-that-it-works-with-elavated-processes-too If you find it helpful vote for it at Connect.