Process.Start(string); - starts process for a few seconds. C# -


I have a Windows 7 (x86) and My Console Application (C #). In my application, I need to run a new process in the application only:

process Start (file name);

When the app is being run, it creates a new process, but it destroys after a few seconds, even in the debugging is not being initialized See this information:

  "proc.MainModule" had removed the exception "System.CommentModel.Venoff exception". NativeErrorCode = 299 ExitCode = -3   

If I run the required application by Windows - it gets run.

About ReadProcessMemory or WriteProcessMemory did not complete successfully

does not do anything after the process. Start (); This error I can see in the debug after the var proc = process. Start (file name); .

AOgame.exe - My executable application is an XI file of this GameOlds when I try to execute other applications, they are good starters. I think this is a problem with AOgame.exe but I do not know how to remove the error.

There are no arguments in the properties of AOGIM.XA.

I think this is anti-cheat protection but if I try to execute it with CMD-console it will work.

Yes! I got the solution! Firstly - create a batch file, which will run AOGIM.XA - then execute a batch file from my application This is a strange solution, but it works: D

< Div class = "post-text" itemproc = "text">

Maybe some files are needed in the working directory? ...

Try setting the work directory:

  ProcostStartInfo process input = new processstinfo ("foo.exe"); ProcessInfo.WorkingDirectory = @ "C: \ Bar"; Process.Start (processInfo);    

Comments