Index was outside the bounds of the array

Aug 13, 2011 at 12:48 PM

Hi

I have this message on command when I run the FileMon Project.

please help me what is wrong?

1. I opened FileMon.csproj in VS2008

2.I added FileMonInject.csproj to it (FileMon.csproj )

3.I copied

EasyHook.dll

EasyHook64.dll

EasyHook32.dll 

EasyHook64.lib

EasyHook32.lib 

EasyHook64Svc.exe

EasyHook32Svc.exe

into Debug\x64 Directory

Finally when I ran the project

I have that error message (Index was outside the bounds of the array)

So I think the problem is about RemoteHooking.Inject() Function

when I set first parameter--->  'TargetPID' 

I saw this error :

there was an error while connecting to target :

System.ApplicationException:Unknown error code <-1073741275>

and when I set it to ---- >'Int32.Parse(args[0])'

I saw this error :

there was an error while connecting to target :

System.IndexOutOfRangeException : Index was outside the bounds of the array

 

and when I comment it , I have no error

please help me