Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2006-09

types.pp: TPointerDynArray

5 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Marc Weustink

Hi,

The Types unit has all kinds of DynArray definitions, but no TPointerDynArray. Is there a problem adding it ?

Marc

Reply by email

Steve
to Marco van de Voort

I downloaded FP not long ago and have been trying to shift over and add some things a Borland Pascal program that controls stepper motors for a cnc machine (needs Dos for critical timing of motor pulses). I looked in the list of bugs that were being worked on and didn't see a Graph bug listed for the DOS GO32V2 ver of FreePascal. Basically any program I try to run that has Graph in it gets a 216 error. 3 different computers, 2 with Win 98 in Dos mode, one with Dos, all with video cards that support vesa and can run the Borland program with Borlands Graph and Vesa16.bgi. Is this a bug or me doing something wrong?

Works:

{    This file is part of the Free Pascal run time library.
    Copyright (c) 1993-98 by the Free Pascal Development Team
 **********************************************************************}
program hello;
  begin
     writeln('Hello world');
  end.

Does not work:

{    This file is part of the Free Pascal run time library.
    Copyright (c) 1993-98 by the Free Pascal Development Team
 **********************************************************************}
program hello;
uses Graph;
  begin
     writeln('Hello world');
  end.

Reply by email

Daniël Mantione
to Steve

Op Sun, 10 Sep 2006, schreef Steve:

Show quoted text 10 lines
I downloaded FP not long ago and have been trying to shift over and add some things a Borland Pascal program that controls stepper motors for a cnc machine (needs Dos for critical timing of motor pulses). I looked in the list of bugs that were being worked on and didn't see a Graph bug listed for the DOS GO32V2 ver of FreePascal. Basically any program I try to run that has Graph in it gets a 216 error. 3 different computers, 2 with Win 98 in Dos mode, one with Dos, all with video cards that support vesa and can run the Borland program with Borlands Graph and Vesa16.bgi. Is this a bug or me doing something wrong?

It can be a or it might not be. Nobody of the Free Pascal team is actively using Dos, but when we checked it worked. However, you are not the first one reporting graph problems.

The only thing I can recommend is to download the graph source code and debug it to try to find out where it goes wrong. Once we know what causes it we might be able to fix it.

Daniël

Reply by email

Tomas Hajny
to Daniël Mantione
Daniël Mantione wrote 19 lines
Op Sun, 10 Sep 2006, schreef Steve: > I downloaded FP not long ago and have been trying to shift over and add some > things a Borland Pascal program that controls stepper motors for a cnc > machine (needs Dos for critical timing of motor pulses). I looked in the > list of bugs that were being worked on and didn't see a Graph bug listed for > the DOS GO32V2 ver of FreePascal. Basically any program I try to run that > has Graph in it gets a 216 error. 3 different computers, 2 with Win 98 in > Dos mode, one with Dos, all with video cards that support vesa and can run > the Borland program with Borlands Graph and Vesa16.bgi. Is this a bug or me > doing something wrong? It can be a or it might not be. Nobody of the Free Pascal team is actively using Dos, but when we checked it worked. However, you are not the first one reporting graph problems. The only thing I can recommend is to download the graph source code and debug it to try to find out where it goes wrong. Once we know what causes it we might be able to fix it.

Actually, the problem is known (see
http://www.freepascal.org/mantis/view.php?id=7338
or bottom of
http://www.freepascal.org/wiki/index.php/Issues_2. 0.4) and not really specific to just one unit
(although unit Graph is known to be affected). I
guess that it might be useful to have a look at
register allocation and stack changes, but I
didn't manage to find time for doing it yet. :-(

Tomas

Reply by email