On Wed, 6 Jul 2016 19:29:19 UTC, James Moe
<
[email protected]> wrote:
Hi James,
To start an external program independently in PMMail, it uses DosStartSession(). This works as expected in g++ v3.3.5-5. It fails in
g++ v4.7.3. The window output is:
SYS1034: The system cannot find the command processor in the path
specified.
OS/2 Command Interpreter version 4.5
What is the API return code from DosStartSession?
Can anyone suggest what other values may be appropriate here?
The values you provided look fine and probably are fine.
Since 3.3.5 works, I have to suspect that the compiler change moved
things around in memory and exposed a latent defect in the existing
code.
Have you tried a simple testcase to test whether the problem is your DosStartSession usage or something else.
BTW, DosStartSession is not high memory safe. If you are building
with -Zhigh-mem you need to #include os2safe.h in code that invokes DosStartSession.
Steven
--
---------------------------------------------------------------------
Steven Levine <
[email protected]>
DIY/Warp/BlueLion etc. www.scoug.com www.arcanoae.com www.warpcave.com ---------------------------------------------------------------------
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)