[Mono-bugs] [Bug 514352] New: System.Diagnostics.Process MainWindowHandle and MainWindowTitle properties are empties

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Jun 18 08:14:46 EDT 2009


           Summary: System.Diagnostics.Process MainWindowHandle and
                    MainWindowTitle properties are empties
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.4.x
          Platform: PC
        OS/Version: SLED 11
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: marc.gur at continental-corporation.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:
Gecko/2009012700 SUSE/3.0.6-1.14 Firefox/3.0.6

System.Diagnostics.Process MainWindowHandle and MainWindowTitle properties
returns null

Running the code sample below produce only null results on Linux ptfs. 

using System;

using System.Collections.Generic;

using System.Text;

using System.Diagnostics;

namespace findw


    class Program


        static void Main(string[] args)


            Process[] pis = Process.GetProcesses();

            foreach (Process p in pis)


                Console.WriteLine(p.ProcessName+" : "+ p.MainWindowTitle+" :


        Console.WriteLine("end enumeration");




Reproducible: Always

Steps to Reproduce:
1. Execute code sample
Actual Results:  
MainWindowHandle = "null"; MainWindowTitle = null when running on Linux (even
if the debugger show MainWindowHandle  to a non null value)

On PC Win32 , these properties return sginificative values.

Expected Results:  
Getting significative results.

Bug seen on :
 - SED 11 / mono 2.4
 - Ubuntu 9.04  / mono 2.0.1

Configure bugmail: http://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