Sign in Join

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

Mailing lists

fpc-pascal

Subscribe to this list Your subscription

All words must match. Use "exact phrase", -word, -"phrase", from:name, from:"first last", list:fpc-devel, year:2011, before:2012-03, after:2010, in:subject.

Latest threads

  1. Lazarus Bugfix Release 3.2

    The Lazarus team is glad to announce the release of Lazarus 3.2. This is a bugfix release and was built with FPC 3.2.2. Here is the list of changes for Lazarus and Free…

    Mattias Gaertner
    0
  2. [fcl-web] [jsonrpc] [fpjsonrpc.pp] DoCheckParamArray in TCustomJSONRPCHandler

    the TCustomJSONRPCHandler.DoCheckParamArray in fpjsonrpc.pp causes an exception with the message "List index (0) out of bounds". This happens, for example, if ParamArray…

    Michael Anochin, Michael Van Canneyt
    1
  3. Floating point question

    Compile-time math needs to be as correct as possible. RUN-time math can worry about performance. The whole point of computer programming is to let the machine do the…

    Ern Aldo, Bernd Oppolzer, Florian Klämpfl
    28
  4. Can FPC link a program with static (.a) libraries on Windows

    I have a Pascal program, compiled with FPC 3.2.2 and which appears to happily link and run with a static library compiled with gcc and having a ".a" prefix on linux. The…

    Tony Whyman, Sven Barth, tony.whyman
    2
  5. Re: Floating point question

    I believe this question is a red herring. In case "constant propagation" is an optimization aimed primarily at run-time program code (this is mainly why compilers exist)…

    Ern Aldo, Bernd Oppolzer
    1
  6. 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
  7. 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
  8. "Unexpected end of file" when having an open comment after the final "end."

    I'm unsure about whether or not to report this as a bug. Imho, it is a bug, but maybe there's a good reason to handle this. Please take the following example: ---start---

    Thomas Kurz, Martin Wynne, Ralf Quint
    7
  9. Re: Floating point question (Rafael Picanço)

    I have some questions about {$MINFPCONSTPREC 64} and the mentioned change introduced by FPC 2.2 (the "it" from here after). 1) Does it affects constants only? 2) Does it…

    Rafael Picanço, Bart, James Richters
    4
  10. How to contribute a Unit

      In www.freepascal.org, I see there is a "Contributed Units" tab. What are the criteria for a unit to be qualified to be placed there. How can one build a community…

    Unknown author
    0
  11. Re: Crash with cthreads and snapshot ppca64 on macos 14.2.1

    -Mmacpas adds macpas.pas, which uses math.pas and throught that sysutils.pas. But, looking at the RTL source code, I don't see anything that explains why the problem…

    Adriaan van Os
    0
  12. Crash with cthreads and snapshot ppca64 on macos 14.2.1

    I get a "Threading has been used before cthreads was initialized." crash for a simple program program test; uses cthreads; begin writeln( 'Hello') end. on macos 14.2.1…

    Adriaan van Os
    0
  13. 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
  14. 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
  15. 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
  16. 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
  17. 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
  18. 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
  19. 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
  20. "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
  21. $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
  22. 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
  23. %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
  24. 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
  25. 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
  26. 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
  27. 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
  28. 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
  29. 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
  30. Daily snapshots?

    as it seems to take longer for the next major release, I'd appreciate if automated snapshots could be provided either daily or weekly. In the documentation, I found a…

    Thomas Kurz, Marco van de Voort, Nico Neumann
    4

Browse by month

2026
2025
2024
2023
2022
2021
2020
2019
2018
2017
2016
2015
2014
2013
2012
2011
2010
2009
2008
2007
2006
2005
2004
2003
2002
2001
2000
1999