1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Added an assertion to ChildProcess to catch attempts to launch non-existent executables.

This commit is contained in:
jules 2014-02-28 19:25:47 +00:00
parent 9ceb072b24
commit 1f27553d38

View file

@ -996,6 +996,10 @@ public:
ActiveProcess (const StringArray& arguments, int streamFlags)
: childPID (0), pipeHandle (0), readHandle (0)
{
// Looks like you're trying to launch a non-existent exe or a folder (perhaps on OSX
// you're trying to launch the .app folder rather than the actual binary inside it?)
jassert (File::getCurrentWorkingDirectory().getChildFile (arguments[0]).existsAsFile());
int pipeHandles[2] = { 0 };
if (pipe (pipeHandles) == 0)