[pascal] [turbo] problem z "Exec" w win'xp

0

nie wiem czy to normalne (w koncu w xp nie ma dos-a) ale u mnie nie da sie wywolac nic poleceniem Exec (w turbo pascalu)..
zwraca blad ze za malo pamięci...
jakies pomysly??

0

Jeśli chodzi o błąd #202 lub #203, to ustaw więcej pamięci w opcjach IDE, albo przy pomocy dyrektywy $M.
A jeśli o out of memory, to

Help napisał(a)

+---------------+
| Out of memory |
+---------------+

This error occurs when the compiler has run
out of memory.

Try these possible solutions, in this order:

  1. Fix the problem outside the IDE:

    • Remove TSRs from memory.
    • Modify CONFIG.SYS to remove unnecessary
      drivers; also reduce files and buffers
      (SET FILES = 20, SET BUFFERS = 20).
  2. Reconfigure Turbo Pascal:

    • Set CompilełDestination set to Disk.
    • Set OptionsłLinkerłLink buffer to Disk.
      ** Turn Graphics Screen Save OFF
  3. Modify your source code:

    • Overlay units in your program
    • In OptionsłMemory Sizes, reduce
      Stack Size and Low Heap Limit
    • In OptionsłCompiler Options:
      ** Turn both Range Checking and
      Stack Checking OFF
      ** Turn Emulation OFF during debugging
  4. Try using the IDE to edit your program,
    then use the command-line compiler
    (TPC.EXE or TPCX.EXE) to compile it and
    Turbo Debugger to debug it.

If none of these suggestions help, your
program or unit might just be too large to
compile in the amount of memory available; you
might have to break it into two or more
smaller units.

ntvdm szwankuje na niektórych kompach w win xp, no ale skoro programy działają, tylko problem z procką Exec, to raczej nie wina windowsa.

Poza tym

Help napisał(a)

[...]Errors are reported in DosError. When
compiling a program that uses Exec, reduce the
"maximum" heap size; otherwise, there won't be
enough memory (DosError = 8).
[...]

Czyli to, co napisałem na samym początku - dyrektywa $M

1 użytkowników online, w tym zalogowanych: 0, gości: 1