Start external application on server side

T

tomi

Hi

I have an application running on server which sometimes crashes. I need
to start it when i find it's not runnnig. I've tried following:

Process myProcess = new Process();

// Get the path that stores user documents.
myProcess.EnableRaisingEvents = false;
myProcess.StartInfo.FileName = @"c:\Projects\encoder.exe";
myProcess.StartInfo.CreateNoWindow = true;
myProcess.Start();

It's a console application with no GUI and all it does it encodes some
video files.

BUT it does not seem to work because immediatelly after application
starts it fails on error message: Unable to read memory on address ....

Any idea ? ... Ii'm getting desperate

Tx

Tomi
 
J

John Timney \(MVP\)

I guess you should be determining if it crashes when you run it, as opposed
to running it under whatever web account you are using. That at least would
narrow it down to confilcits with windows (like trying to report progress)
or permissions.

Regards

John Timney (MVP)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,996
Messages
2,570,237
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top