|
I working with C# 2008 and 2012 windows applications that need to call different executables.
Are there other ways to call theses processes besides the way I have the code listed below:
Process eProcess1 = new Process();
eProcess1.StartInfo.FileName = strConsoleAppLocation;
Process1_Arguments = " 10 " + kgID;
eRPT_Process1.StartInfo.Arguments = Process1_Arguments;
eRPT_Process1.Start();
If there are other ways to start a process, can you write the code and/or point me to a reference that
will display other ways that an executable can be run from C# code?
|
|
|
|
|
You could manually invoke ShellExecuteEx , but that'd be more complicated without giving much advantages (if any).
I'm curious, why are you looking for an alternative?
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
This application just went into production. I am tryuing to determine if 'extra' processes can be started with other kinds of C# statements in the code.
|
|
|
|
|
classy_dog wrote: I am tryuing to determine if 'extra' processes can be started with other kinds of C# statements in the code.
Search your code for the Proces class.
If there's a static class somewhere, loaded once every full moon, with some "unmanaged resources", you might have the same problem. Another way of executing code would be by compiling it on the fly, and to generate the required call to the Proces-class on demand, from an encrypted string.
Still curious what you're looking for, might help in giving a more useful answer.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
I am getting the following error message on the production server:
Process 9528 (\Device\HarddiskVolume2\Program Files (x86)\red\sampleclient.exe) has opened key \REGISTRY\USER\S-1-5-21-11-222-333\Software\Microsoft\SystemCertificates\TrustedP eople
Process 8880 (\Device\HarddiskVolume2\Program Files (x86)\red\sampleclient.exe) has opened key \REGISTRY\USER\S-1-5-21-11-222-333\Software\Microsoft\SystemCertificates\TrustedP eople
Process 9528 (\Device\HarddiskVolume2\Program Files (x86)\red\sampleclient.exe) has opened key \REGISTRY\USER\S-1-5-21-11-222-333\Software\Microsoft\SystemCertificates\My
Process 8880 (\Device\HarddiskVolume2\Program Files (x86)\red\sampleclient.exe) has opened key \REGISTRY\USER\S-1-5-21-11-222-333\Software\Microsoft\SystemCertificates\My
Process 9528 (\Device\HarddiskVolume2\Program Files (x86)\red\sampleclient.exe) has opened key \REGISTRY\USER\S-1-5-21-11-222-333\Software\Microsoft\SystemCertificates\Disallow ed
Process 8880 (\Device\HarddiskVolume2\Program Files (x86)\red\sampleclient.exe) has opened key \REGISTRY\USER\S-1-5-21-11-222-333\Software\Microsoft\SystemCertificates\Disallow ed
This keeps processes running on the production server. The production server does not release reources.
I am tyring to figure out what could be causing this problem.
This application connects to a web service. The code I am using was initially obtainexd from the company that werote the web service.
There are *.xsd files in a proxy attached to this code I am running.
Thus do you think I need to contact the company with the web service to see what has changed on their side?
|
|
|
|
|
classy_dog wrote: The production server does not release reources.
How does that relate to the messages you posted? And how are you measuring those?
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
This is the error message that is occuring in production. At the same time the processes in memory created by the program called main are not released. This look like what is causing out server memory to become full.
Do you ave any other ideas?
|
|
|
|
|
classy_dog wrote: This is the error message that is occuring in production.
It doesn't look like an exception; there is no stack-trace. They don't even look like errors, but like an audit; only two o' them failed.
classy_dog wrote: At the same time the processes in memory created by the program called main are not released.
Even if those events are correlated, unless you can track it to your code - all you can do is complain about "Windows", with the error probably being in some 3rd party-unmanaged piece o' code.
How are you determining that the memory isn't released? Don't say "task-manager", say "memory profiler".
classy_dog wrote: This look like what is causing out server memory to become full.
You might be hunting a false track; if you suspect your app has a memory-leak, then start tracking memory-allocation.
I'm getting the feeling that I've read these answers that I'm writing just a few days ago. Did we have this discussion before?
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|