Article View: comp.os.msdos.programmer
Article #641Problem with exec'ing a Turbo Pascal program
From: Glen Eustace
Date: Thu, 09 Apr 1992 21:32
Date: Thu, 09 Apr 1992 21:32
39 lines
2131 bytes
2131 bytes
Can someone throw some light on the following for me.
We have a situation which involves three programs x, y, z. The
important point seems to be that prog y is written in turbo Pascal (
I am not sure about the version but I think it is 5 or 6 ). The
problem we have is as follows.
y spawns z OK
x execs z OK
x execs y OK
x execs y spawns z Fails with insufficient RAM
The lanquage used for z seems irrelevant.
The lanquage for x is C. We have tried MSC5.1 and 6 and TC 2 but
they all demonstrate the same problem. When y is written in C there
isn't a problem.
What we are trying to do is that when a NEW version of some program
is installed on our file server, it gets put in a directory with a
'.NEW' extension. The idea being that these are not in the PATH. If
a user wishes to try the new version he types
NEW COMMAND PARMS instead of
COMMAND PARMS
This has worked well for ages. We have found that it fails when the
program that is new is a TurboPascal program and it, as part of its
function, spawns other progs.
An explanation of this behaviour would be appreciated. Our
experiments have indicated that when a Turbo Pascal program is
exec'ed it gets given all of RAM even though there is a compiler
directive that told it to only allocate a small heap :-(
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Glen Eustace, Systems Software Manager | EMail: G.Eustace@massey.ac.nz
Computing Services, Massey University, | Phone: +64 6 350 5161
Palmerston North, New Zealand. GMT-12 | Fax: +64 6 350 5607
Technical Details
Message-ID:
<1992Apr9.213210.1501@massey.ac.nz>Path:
arc1-ca.pugleaf.net!sparky!uunet!comp.vuw.ac.nz!cc-server4.massey.ac.nz!G.EustaceShow Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!comp.vuw.ac.nz!cc-server4.massey.ac.nz!G.Eustace From: G.Eustace@massey.ac.nz (Glen Eustace) Subject: Problem with exec'ing a Turbo Pascal program Message-ID: <1992Apr9.213210.1501@massey.ac.nz> Organization: Massey University, Palmerston North, New Zealand X-Reader: NETNEWS/PC Version 2c Date: Thu, 9 Apr 92 21:32:10 GMT