Why the specific process by name is not in the List i created?
<p>I have this function that i check if the process is started and when its exited.
But im using on a breakpoint on the IF and the List Count is all the time 0.</p>

<p>And when im running the task amanager i see there bf3.exe *32
So whats wrong here ?</p>

<pre><code>private void isProcessRunning()
{                
    Process[] proclist = Process.GetProcessesByName("bf3.exe");

    if (proclist.Length &gt; 0)
    {
        Logger.Write("Battlefield 3 Started");
        alreadyRun = true;
    }
    else if (alreadyRun == true)
    {
        Logger.Write("Battlefield 3 Exited");
    }            
}
</code></pre>
