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:
parent
9ceb072b24
commit
1f27553d38
1 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue