[Mono-bugs] [Bug 348415] New: setting Process.PriorityClass throws " Some sort of w32 error" exception

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Dec 13 09:47:00 EST 2007


           Summary: setting Process.PriorityClass throws "Some sort of w32
                    error" exception
           Product: Mono: Class Libraries
           Version: 1.2.6
          Platform: x86-64
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at ximian.com
        ReportedBy: cbrake at bec-systems.com
         QAContact: mono-bugs at ximian.com
          Found By: Consulting

Description of Problem:

Setting Process.PriorityClass without being root throws the following

Unhandled Exception: System.ComponentModel.Win32Exception: Some sort of w32
error occurred: 6
  at System.Diagnostics.Process.set_PriorityClass (ProcessPriorityClass value)
  at (wrapper remoting-invoke-with-check)
  at ProcessTest.Main (System.String[] args) [0x00000]

running the following code:

using System;
using System.Diagnostics;

public class ProcessTest
        public static void Main(string[] args)
                Process p = new Process();
                p.StartInfo.FileName = "ls";
                p.PriorityClass = ProcessPriorityClass.Normal;

Steps to reproduce the problem:
1. mono 1.2.6
2. run the above code not as root

Actual Results:

Expected Results:
Should the exception be a little more descriptive?

How often does this happen? 
every time

Additional Information:

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list