From 1f27553d381a91725016dfe3799fd39dfc32824d Mon Sep 17 00:00:00 2001 From: jules Date: Fri, 28 Feb 2014 19:25:47 +0000 Subject: [PATCH] Added an assertion to ChildProcess to catch attempts to launch non-existent executables. --- modules/juce_core/native/juce_posix_SharedCode.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/juce_core/native/juce_posix_SharedCode.h b/modules/juce_core/native/juce_posix_SharedCode.h index 402662a153..a0e633a7d3 100644 --- a/modules/juce_core/native/juce_posix_SharedCode.h +++ b/modules/juce_core/native/juce_posix_SharedCode.h @@ -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)