Click here to Skip to main content
15,914,111 members
Home / Discussions / C#
   

C#

 
GeneralRe: Problem with HashTable Pin
Vega023-Mar-08 22:47
Vega023-Mar-08 22:47 
GeneralRe: Problem with HashTable Pin
NarVish3-Mar-08 23:24
NarVish3-Mar-08 23:24 
GeneralRe: Problem with HashTable Pin
Guffa4-Mar-08 4:33
Guffa4-Mar-08 4:33 
GeneralRe: Problem with HashTable Pin
Vega024-Mar-08 6:01
Vega024-Mar-08 6:01 
GeneralRe: Problem with HashTable Pin
Guffa4-Mar-08 10:22
Guffa4-Mar-08 10:22 
Questionhelp in deploying windows application Pin
Sadaf Naeem3-Mar-08 22:19
Sadaf Naeem3-Mar-08 22:19 
GeneralRe: help in deploying windows application Pin
yogesh_kumar_agarwal3-Mar-08 22:45
yogesh_kumar_agarwal3-Mar-08 22:45 
QuestionC# client with a C++ server Pin
turkel3-Mar-08 22:08
turkel3-Mar-08 22:08 
GeneralRe: C# client with a C++ server Pin
Christian Graus3-Mar-08 22:12
protectorChristian Graus3-Mar-08 22:12 
GeneralRe: C# client with a C++ server [modified] Pin
turkel4-Mar-08 5:40
turkel4-Mar-08 5:40 
GeneralCreate PDF file and directly send it on particular Email address Pin
M Riaz Bashir3-Mar-08 20:04
M Riaz Bashir3-Mar-08 20:04 
GeneralRe: Create PDF file and directly send it on particular Email address Pin
Christian Graus3-Mar-08 20:34
protectorChristian Graus3-Mar-08 20:34 
GeneralRe: Create PDF file and directly send it on particular Email address Pin
Rajesh R Subramanian3-Mar-08 20:53
professionalRajesh R Subramanian3-Mar-08 20:53 
GeneralRe: Create PDF file and directly send it on particular Email address Pin
blackjack21504-Mar-08 0:16
blackjack21504-Mar-08 0:16 
GeneralException When Accessing Process.StartTime, Exc:"Access is Denied" Pin
Cyber Friend3-Mar-08 19:53
Cyber Friend3-Mar-08 19:53 
GeneralRe: Exception When Accessing Process.StartTime, Exc:"Access is Denied" Pin
Christian Graus3-Mar-08 20:48
protectorChristian Graus3-Mar-08 20:48 
GeneralRe: Exception When Accessing Process.StartTime, Exc:"Access is Denied" Pin
Cyber Friend3-Mar-08 21:14
Cyber Friend3-Mar-08 21:14 
Hi there,

Thanx for reply Graus.

This process is causing the exception.

Name: msdtc
MS DTCconsole program
ImagePath: C:\WINDOWS\system32\msdtc.exe

I m running this code in Vs 2005, While same code is running succesfully in VS 2003. I can't understand this weird behaviour.

Here is complete code of my method, u can test it on VS03.

      public static void ListAllProcesses()<br />
        {<br />
            Process[] processes = null;<br />
            string mcName = ".";<br />
            try<br />
            {<br />
                processes = Process.GetProcesses(mcName);                <br />
                foreach (Process p in processes)<br />
                {<br />
<br />
                    Console.Write("\nProcessName: " + p.ProcessName);<br />
                    Console.Write("\tID: " + p.Id.ToString());<br />
                    Console.Write("\tStartTime: " + p.StartTime.ToShortTimeString());<br />
                    Console.Write("\tCPUTime: " +  p.TotalProcessorTime.Duration().Hours.ToString()+":"+p.TotalProcessorTime.Duration().Minutes.ToString()+":"+p.TotalProcessorTime.Duration().Seconds.ToString());                                                                                <br />
                                                      <br />
                }<br />
            }<br />
            catch (Exception ex)<br />
            {<br />
                MessageBox.Show(ex.Message);                <br />
            }<br />
        }  



best regards,
Cyber Friend
GeneralRe: Exception When Accessing Process.StartTime, Exc:"Access is Denied" Pin
Giorgi Dalakishvili20-Dec-11 0:43
mentorGiorgi Dalakishvili20-Dec-11 0:43 
QuestionHow to implement remote sensing image segmentation in C# Pin
Ashokpnathan3-Mar-08 19:43
Ashokpnathan3-Mar-08 19:43 
AnswerRe: How to implement remote sensing image segmentation in C# Pin
Christian Graus3-Mar-08 19:50
protectorChristian Graus3-Mar-08 19:50 
QuestionWht's The best way to add projects in solution... Pin
Amit Sk Sharma3-Mar-08 18:26
Amit Sk Sharma3-Mar-08 18:26 
GeneralRe: Wht's The best way to add projects in solution... Pin
Christian Graus3-Mar-08 18:56
protectorChristian Graus3-Mar-08 18:56 
GeneralRe: Wht's The best way to add projects in solution... Pin
Amit Sk Sharma3-Mar-08 19:35
Amit Sk Sharma3-Mar-08 19:35 
GeneralRe: Wht's The best way to add projects in solution... Pin
Christian Graus3-Mar-08 19:51
protectorChristian Graus3-Mar-08 19:51 
GeneralRe: Wht's The best way to add projects in solution... Pin
kannan M ambadi3-Mar-08 19:44
kannan M ambadi3-Mar-08 19:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.