Process::HasExited always true
-
Am I the only fool using .NET in here?... haha In the process I´ve explained here the property
Process::HasExited
is true from the moment the process starts. The same occurs with the methodvoid extProcessWorkCompleted (System::Object^ /*sender*/, System::ComponentModel::RunWorkerCompletedEventArgs^ e)
which is called when the process starts, and not when it actually finishes. Has this something to do with the process´s code or am I doing something wrong? -
Am I the only fool using .NET in here?... haha In the process I´ve explained here the property
Process::HasExited
is true from the moment the process starts. The same occurs with the methodvoid extProcessWorkCompleted (System::Object^ /*sender*/, System::ComponentModel::RunWorkerCompletedEventArgs^ e)
which is called when the process starts, and not when it actually finishes. Has this something to do with the process´s code or am I doing something wrong?piul wrote:
Am I the only fool using .NET in here?
I don't know.
piul wrote:
am I doing something wrong?
Most probably. :|
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
-
piul wrote:
Am I the only fool using .NET in here?
I don't know.
piul wrote:
am I doing something wrong?
Most probably. :|
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
-
Am I the only fool using .NET in here?... haha In the process I´ve explained here the property
Process::HasExited
is true from the moment the process starts. The same occurs with the methodvoid extProcessWorkCompleted (System::Object^ /*sender*/, System::ComponentModel::RunWorkerCompletedEventArgs^ e)
which is called when the process starts, and not when it actually finishes. Has this something to do with the process´s code or am I doing something wrong? -
Am I the only fool using .NET in here?... haha In the process I´ve explained here the property
Process::HasExited
is true from the moment the process starts. The same occurs with the methodvoid extProcessWorkCompleted (System::Object^ /*sender*/, System::ComponentModel::RunWorkerCompletedEventArgs^ e)
which is called when the process starts, and not when it actually finishes. Has this something to do with the process´s code or am I doing something wrong?piul wrote:
The same occurs with the method void extProcessWorkCompleted (System::Object^ /*sender*/, System::ComponentModel::RunWorkerCompletedEventArgs^ e) which is called when the process starts, and not when it actually finishes.
Some executables finish immediately after spawning a child-proces. Can you compare the Process-ID of the executable that you started to the one that seems to be running?
I are Troll :suss: