Sign in Join

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

Mailing lists / fpc-pascal

fpc-pascal · 2022-09

  1. JSON RPC changes in 3.3.1

    So I got the project building after changing the enums but now after running the server breaks after sending the first request and I get the error "'No class…

    Hairy Pixels, Luca Olivetti, Michael Van Canneyt
    14
  2. Lazarus Release 2.2.4

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

    Mattias Gaertner
    0
  3. Enum property can't be published

    I just tried to build a lazarus project using 3.3.1/ppca64 and I’m getting an error that an enum can’t be published. This was working on 3.2.2/ppcx64 so what changed?

    Hairy Pixels, Marco van de Voort, Ondrej Pokorny
    6
  4. mciSendString with long file names

    I'm trying to get mciSendString() to work with long file names with spaces in them and I'm not having any success. I know with winnows you need quotes around long file…

    James Richters, Alexander Grotewohl, Alexander Hofmann
    14
  5. Learning Guide Focused On Android and Mobile

    I'm looking for any learning materials that may help me learn free pascal to the target Android and Mobile. There are a good number of tutorials online for general…

    Charuza Family
    0
  6. SerReadTimeout question

    I can't seem to find any documentation or SerRead or SerReadTimeout.. searching for either along with Freepascal doesn't get me any results. If it exists somewhere and I…

    James Richters, Alexey Torgashin, Christo Crause
    3
  7. Get TMethod from function reference

    A function reference can call a class method but can you get the TMethod data from function references? It was possible with “is object” to cast to TMethod but that…

    Hairy Pixels, Michael Van Canneyt, Ondrej Pokorny
    13
  8. Getting Shift key with PTCCRT

    I have some key sequences with PTCCRT.READKEY where I use a lower case letter to do one thing and an uppercase to do another, but if the Capslock is on, they do the…

    James Richters, Nikolay Nikolov, Tomas Hajny
    6
  9. $modeswitch declared before $mode fails without warning

    One more thing today working with closures. Declaring the modeswitch before the mode does not actually enable the feature and gives no warning. What happens then is…

    Hairy Pixels, Florian Klämpfl, Sven Barth
    3
  10. Function reference doesn't capture in thread

    Can anyone explain why this program doesn’t capture the state of the local variable “I” and execute in order? It will return something like this: Invoked: 3 id:…

    Hairy Pixels, Sven Barth
    6
  11. Internal error 2019022201 from function reference

    This program gives internal compiler error 2019022201 (Free Pascal Compiler version 3.3.1 [2022/05/27] for aarch64). Something is wrong with the PPU. This is a very…

    Hairy Pixels, Sven Barth
    2
  12. Access Violation When SetLength(DynArray, Value)

    Is there a known edge case issue connected to setting the length of dynamic arrays? I have a program that simulates a billiards game, and during the rerack balls method…

    Anthony Walter, Adriaan van Os, James Richters
    13
  13. How to assign overloaded event handler?

    I don't know whether this is actually a bug or not but I cannot find a hint in the documentation. It seems that methods assigned to an event handler are not allowed to…

    Thomas Kurz, Michael Van Canneyt
    1
  14. fpwebfile, indexPageName and query -> 404

    if I request, e.g. http://localhost:8080 or http://localhost:8080/ fpwebfile returns the document defined as IndexPageName (in my case index.html), but if I request…

    Luca Olivetti, Michael Van Canneyt
    3
  15. Test Free Pascal program not compiling

    Trying to compile a small test pascal program on a arm cpu. I beleive it is an a53. Libre Le Potato I am getting the following error: Error: Error while assembling…

    Terry A. Haimann, Christo Crause, Tomas Hajny
    3
  16. Get highest element of a StringList

    I thought I would try: For Loop := 0 to High(MyStringList) do But I get "Error: Type mismatch" Is there a way to get the highest element of a stringlist other than: For…

    James Richters, Bart, Jean SUZINEAU
    16
  17. Why does nested function get corrupted?

    Curious more than anything, if is nested captures state in a record and passes it as an hidden self param, why does returning the variable and calling from outside the…

    Hairy Pixels, Ondrej Pokorny, Sven Barth
    7
  18. TJSONRPCModule: access the request from an handler.

    I added a "Web JSON-RPC Module" to my project, I dropped on it a TJSONPCHandler. I find no way to access the request (I want to check the RemoteAddress): 1) the module…

    Luca Olivetti, Michael Van Canneyt
    3
  19. Arguments gets corrupted with anonymous nested function

    The following program uses an anonymous nested function which captures a local variable. It seems the arguments get corrupted (likely because of the hidden first param…

    Hairy Pixels, Benito van der Zander, Jonas Maebe
    7
  20. reading a TFPGMap from several threads

    I have a couple of TFPGMaps that I populate once and never change. Is it safe to read them (i.e. use Find and Data[]) from different threads? I'd avoid using a critical…

    Luca Olivetti, Sven Barth
    2
  21. I am offering a $100 reward for linking static libraries

    I will pay $100 to the first person that can solve my problem of linking a compiled C static library to a Free Pascal program on Windows. Recently I have been building…

    Anthony Walter, Henry Vermaak, Jean SUZINEAU
    18