IProcess.CommandLine exception

delphi package - easy access to kernel objects etc.
Post Reply
katoa
Posts: 1
Joined: Tue Mar 31, 2009 10:26 pm

IProcess.CommandLine exception

Post by katoa »

When trying to get the commandline of a process I did not start, such as:

Process('notepad.exe').CommandLine

I get the following exception:

Exception: Not all replace pointers found!
0049e473 +1d3 Install.exe madKernel TIProcess.CopyCode
0049ebda +522 Install.exe madKernel TIProcess.InjectCommand
0049c5e0 +0e0 Install.exe madKernel TIProcess.GetCommandLine

P.S. Reproduced on multiple computers running XP SP3.
Unlimited
Posts: 28
Joined: Wed Feb 14, 2007 4:18 am

Post by Unlimited »

I have similar problem. Error when i want to get CommandLine from C:\Windows\System32\services.exe.

MyProcess := MyProcesses.Items;
Exe := MyProcess.ExeFile;
CmdLine := MyProcess.CommandLine;

I have a priviladge. And I try it on WinXP SP2 using latest madCollection 2.5.9.0.
Unlimited
Posts: 28
Joined: Wed Feb 14, 2007 4:18 am

Post by Unlimited »

I downgraded madCollection to 2.5.8.0 and problem SOLVED. Don't know why . Madshi? :sorry:
madshi
Site Admin
Posts: 10338
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

It's weird that downgrading to an older version helps. Will have to look into this.
madshi
Site Admin
Posts: 10338
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

This will be fixed in the next build (due out in the next few days). Sorry for the late fix.
Post Reply