I launch an external program in the Form Create section of my app with:
ShellExecute(0, 'Open', PChar('Other.exe'), PChar(''), PChar(''), SW_Hide);
This works perfectly, but I just found out that there were approximately 30 instances of this program running when I looked in the task manager! Obviously, each time I run my app, another copy of the external program is run. :)
Is there any way of closing down a program launched in this way when I close my app down?