Writing a piece of code which opens another process.
public void StartProcess()
{
Process p = Process.Start("Process1");
p.WaitForInputIdle();
SetParent(p.MainWindowHandle, this.Handle);
IntPtr h = p.MainWindowHandle;
}
This will start process 1. Is there a way to catch runtime exceptions in Process1?
It is a different question from the code shown here as it tells you how to catch a runtime exception to a .net exectuable assembly. The application I'm opening is built using Delphi and I do not have the source code