R
Rajeev Goel
Hi Russell,
Sorry I can't be of any great help here, but I did want to give you one
additional datapoint. I'm running Windows XP Pro, and I am not an Admin on
my machine ... I'm running as a normal User.
I created a simple managed C++ application with the following code:
int _tmain()
{
Process* localAll[] = Process::GetProcesses();
for (int i = 0 ; i < 10 ; i++)
{
Console::WriteLine(localAll->ProcessName);
}
return 0;
}
And it worked correctly for me... listing out the first 10 processes.
All the errors/exceptions you're getting definitely seem to indicate that
it's trying to access some remote machine instead of the local machine.
Any idea why this might be? If you're really calling GetProcesses()
without any parameters, it shouldn't be trying to do any remote calls.
--Rajeev
Visual Studio .NET
Microsoft Corp.
This posting is provided "AS IS" with no warranties, and confers no rights.
Sorry I can't be of any great help here, but I did want to give you one
additional datapoint. I'm running Windows XP Pro, and I am not an Admin on
my machine ... I'm running as a normal User.
I created a simple managed C++ application with the following code:
int _tmain()
{
Process* localAll[] = Process::GetProcesses();
for (int i = 0 ; i < 10 ; i++)
{
Console::WriteLine(localAll->ProcessName);
}
return 0;
}
And it worked correctly for me... listing out the first 10 processes.
All the errors/exceptions you're getting definitely seem to indicate that
it's trying to access some remote machine instead of the local machine.
Any idea why this might be? If you're really calling GetProcesses()
without any parameters, it shouldn't be trying to do any remote calls.
--Rajeev
Visual Studio .NET
Microsoft Corp.
This posting is provided "AS IS" with no warranties, and confers no rights.