Sign in Join

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

Mailing lists / fpc-pascal

fpc-pascal · 2024-01

  1. FPReport: Split text across two or more pages

    I have already asked this and related questions in the Lazarus Forum. I want to improve FPReport in order to use it for my project - if possible. Some features are…

    Unknown author, Michael Van Canneyt, Pique7
    8
  2. Floating point question

    I'm facing some strange floating-point issues and cannot find what's actually wrong. OS is win64, but I'm even getting different results when targeting to win32. Please…

    Thomas Kurz, Adriaan van Os, Bart
    68
  3. Read Field names from VMT

      I want to retrieve the name of the fields in a record/class, at run time. It looks like "TVmt.vFieldTable" is what I need. But I cannot find any documentation about…

    Unknown author, Amir, Michael Van Canneyt
    14
  4. Division by zero when running SDL program on GPU (NVIDIA)

    Hi everyone, how are you doing? I am receiving an "FLT divide by zero" error when creating a renderer with // will default to Direct3d renderer…

    Rafael Picanço, Hairy Pixels
    2
  5. Need some advice

    Trying to use the fgl unit, specifically the TFPGMap.   Below is a simple program I'm trying to compile; it gives me two errors: fgl.pp(1582,18) Error: Operator is not…

    ppadilcdx, Luca Olivetti, Sven Barth
    4
  6. Nested comments.

    I'm wondering if it is possible to make FPC detect and warn (or even stop compillation when) it has detect a nested comment. That's because I'm using Vim and it closes…

    Guillermo Martínez Jiménez, Adriaan van Os, Tomas Hajny
    4
  7. IntToStr implementation

    Can anyone show me where to find the IntToStr implementation in SysUtils? There's so many level of indirection and macros I have no idea where to look for it! Ryan Joseph

    Hairy Pixels, Adriaan van Os, Benito van der Zander
    9
  8. Trash variables (-gt) - Translation

    I am translating "Trash variables" (from English to Slovak), but I can not find appropriate words. That's why I want to describe it in more words. Is this correct:…

    LacaK, Adriaan van Os, Michael Van Canneyt
    3
  9. Extra linkxxx.res files left over when compiling/building project

    I have been working on troubleshooting a command line FreePascal project for a couple of weeks now and when I look in the project dir it is full of link files:…

    Bo Berglund, Michael Van Canneyt
    1
  10. "Address of" question

    I just noticed it's possible to do @Byte in FPC. Are these 2 lines even different? It doesn't exactly make sense to take the address of a type identifier so I'm curious…

    Hairy Pixels, Michael Van Canneyt
    1
  11. $definec and $define

    The FreePascal Programmer's Guide version 3.2.0 reads in section 1.2.11 "Under Mac Pascal mode, the $DEFINEC directive is equivalent to the $DEFINE directive and is…

    Adriaan van Os
    0
  12. What's in Hello World

    I compiled the Hello World program from the docs and noticed that it's 435k. Compared to a lot of newer languages, like Golang, that's not bad at all. I then compiled…

    Matthew Phillips, Adriaan van Os, code dz
    29
  13. %LINENUM%

    Section 1.2.41 of the Free Pascal Programmer’s Guide version 3.2.0 says: "As a result, this will generate a macro with the value of the XXX specifier, as if it were a…

    Adriaan van Os
    0
  14. RIP: Software design pioneer and Pascal creator Niklaus Wirth

    "Swiss computer scientist Professor Niklaus Wirth died on New Year's Day, roughly six weeks before what would have been his 90th birthday."…

    Tony Whyman, Liam Proven, Michael Van Canneyt
    3
  15. Virtual methods on sealed classes

    Do sealed classes actually call virtual methods statically or are they just for compiler warnings? Ryan Joseph

    Hairy Pixels, Michael Van Canneyt
    1
  16. Quiz

    Quiz. Which of below constant declarations are accepted by the compiler and what is their value ? const ki1 = + 2; ki2 …

    Adriaan van Os, Michael Van Canneyt, Tomas Hajny
    2
  17. Does the varargs specifier behave differently on 32 and 64 bit platforms?

    I'm using a declaration like this TYPE TRSMControl = FUNCTION (AData: PtrInt): PtrInt; CDECL; VARARGS; VAR RSMControl: TRSMControl; to make calls to a DLL function which…

    Thomas Kurz, Jonas Maebe
    1
  18. Profiling in windows

    I have a freepascal project for Windows that works really well, but as soon as I start it, I have high CPU usage, and it stays high, it constantly uses 10% CPU while my…

    James Richters
    0
  19. How to avoid Copy

     I have a List of record, where the record has a WideString field.   I have some code like the following: function check(constref v: TMyRecord; data: TListOfMyRecord):…

    Unknown author, Adriaan van Os, Amir
    17