A
Ashok Subramanian
Hello,
I am calling Process.Start from a C# code in the following way..where
startInfo is the object containing the process information.
try
{
Process installProc = null;
installProc = Process.Start(startInfo);
}
catch(Exception ex)
{
throw ex;
}
If for some reason I pass invalid arguments to the process I am
starting, I get a message saying "The application could not be
initialised". I never go to the catch block. Is there a way I can
catch this exception? Even if I pass wrong arguments, I need to catch
the exception to log it gracefully.
Thanks for the help,
Ashok
I am calling Process.Start from a C# code in the following way..where
startInfo is the object containing the process information.
try
{
Process installProc = null;
installProc = Process.Start(startInfo);
}
catch(Exception ex)
{
throw ex;
}
If for some reason I pass invalid arguments to the process I am
starting, I get a message saying "The application could not be
initialised". I never go to the catch block. Is there a way I can
catch this exception? Even if I pass wrong arguments, I need to catch
the exception to log it gracefully.
Thanks for the help,
Ashok