

Last update:
September 18, 1997
Ronald Scheepstra
August 28, 1998
On 28 Aug 98, at 8:19 Thomas Ahlqvist wrote about "Pragma 4
Invalid Numeric Value".
HELLO! I have a problem with starting a p4-application under
windows 3.11. After a short period of time I get invalid numeric value.
The ram is 16 mb. Total memory under win 3.11 with virtual is about 40
Mb. It works fine with the same application under DOS (6.22).
Hmm, I have no problems with Pragma 4. What you need to check is the
available memory for the dosbox. Windows standard gives a minimum to the
dosbox. It does not matter what your settings are in your config.sys. A
dosbox under windows (any version) has files=10, environment size of 256 and
400Kb of conventional memory.
Here is what you must do:
in your system.INI, located in your windows directory, change or add the
following section (mark that it is case sensitive)
[NonWindowsApp]
CommandEnvSize=2048
localtsrs=dosedit,ced
and in the [386Enh] section of your system.ini add or change the following into
PerVMFiles=60
Then open the Pif-file editor under windows and give the pif-file for your
Pragma as much memory as you can. Begin with a high value. If it is to
much, windows will tell you and you can change it with no harm done.
It does not hurt to load as much in upper memory as you can.
I always us the following in my config.sys:
DEVICE=C:\DOS\HIMEM.SYS
DEVICE=C:\DOS\EMM386.EXE /NOEMS
Files=60
Buffers=40
and the rest is loaded with the command devicehigh. Note that in Windows 95 OSR2
you can also use fileshigh=, buffershigh= and fcbshigh=. This works fine with
Pragma 4. If you want to use Pragma 3 under windows 95 you cannot use these
commands. just files=, buffers= and fcbs=.
For Pragma 3 fcbs= must be placed in the config.sys in order to let it work
under windows (3.x or 95). I do not know if that is also the case for
Pragma 4. Every workstation here that works with a Pragma 4 application, also
uses Pragma 3 applications. I have never tried it without these.
By the way, virtual memory is useless for the solid programs (that means
DOS-programs).
Hope this helps.
Ronald Scheepstra
September 17, 1998
On 17 Sep 98, at 10:44 Thomas Ahlqvist wrote about "Pragma 4, WIN 3.11".
When the program
tries to load AUTOEXEC it says: "This item is not a verb, so it cannot be
run". The application works fine under DOS (6.22) on the
same machine.
Hmm, try the following:
Add or change in the system.ini the next section:
[NonWindowsApp]
CommandEnvSize=1024
(or another value. By default windows gives a DOS program a environment size of
256 and that can be a bit small.
In the [386Enh] section add or change the next value to the same value you have
in your
config.sys file for the files= command:
PerVMFiles=nn
If this does not help start the Pif-editor and give the Pragma 4 dosbox as much
memory as needed and possible. By default Windows gives a program enough to
start. When executing programs in Pragma 4 you need something more. Off
course de DOSGW extender which loads automatically with Pragma does that for
you, but windows like to mess around a bit.
Try to load as much high as you can. I always use the following in the
config.sys
-start config.sys
DEVICE=C:\DOS\HIMEM.SYS
DEVICE=C:\DOS\EMM386.EXE /NOEMS
DOS=high,umb
and all other drivers are loaded with devicehigh command (when loaded in the
config.sys) and the loadhigh (or LH) command in a batch file. I never use the
emm386.exe from win 3.11 because it is not as good as the one from DOS 6.22.
What does Pragma say if you try to change the autoexec verb?
![]()