Hi John,

It turns out that it was a false alarm after all - what I thought was an exact copy was missing a space in the path to the executable (which explains the immediate return in one case), combined with a bug in the component which didn't return false when the executable path didn't exist.

Of course if I hadn't sent this email, I'd never have spotted that missing space!

Adrian

On 04/12/2017 17:13, John DeSoi via 4D_Tech wrote:
Anything unusual about the LEP call -- just using locals and specifying all of 
them? That alone should make it execute in blocking mode. E.g.

LAUNCH EXTERNAL PROCESS($cmd;$in;$out;$err)

Lots of bugs have been fixed since 16.0. Have you tried 16.2?

John DeSoi, Ph.D.


On Dec 4, 2017, at 10:36 AM, Adrian Boone via 4D_Tech <[email protected]> 
wrote:

We have a component which uses Launch External Process to call an accountancy 
package (Moneyworks) via the command line (Windows and Mac), and have just 
recompiled it for v16 (that's another story...). Now, when any component 
methods which use LEP (i.e. most of them) are called from another method in my 
test database, they always return ok, and the output and error variables are 
always empty. There's no noticeable delay in the debugger so it looks like the 
LEP call simply isn't happening?

Now for the really weird part, I have a form with some common test methods 
linked to some of the buttons - if I call the exact same code with the same 
parameters from a button on the form, it works!

If I open the source code for the component, the methods all work fine. I've tried setting the 
_4D_OPTION_BLOCKING_EXTERNAL_PROCESS environment variable to both "true" (which is what I 
want) and "false" immediately before the LEP call in the component, but it makes no 
difference.

This is happening on Windows 10, with v16.0 64-bit, v16.2 32 bit, and with the 
component compiled for just 32-bit, just 64-bit, or both.

Any bright ideas out there?
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************


**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to