Sign in Join

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

Mailing lists / fpc-pascal

fpc-pascal · 2022-10

  1. pthread_detach

    The POSIX thread library has a function called pthread_detach (https://man7.org/linux/man-pages/man3/pthread_detach.3.html). Do the RTL threads have anything comparable?…

    Hairy Pixels, Marco van de Voort
    4
  2. Function references and coroutines

    Since function references are now implemented in the compiler I wonder if this could open the door to implementing coroutines. I remember some years I tried using…

    Hairy Pixels
    0
  3. Calculating CRC16?

    I am working on a handler for IoT data from an electricity meter which communicates via TTL serial at 115200 baud. It only sends data in packets of less than 1 kbytes…

    Bo Berglund, Fabio Luis Girardi, Giuliano Colla
    6
  4. MQTT package for freepascal/lazarus?

    I am looking for a pascal implementation of the MQTT protocol. I could not find anything inside Lazarus' OnLinePackageManager. Is there something like that available? Bo…

    Bo Berglund, Jean SUZINEAU, Karoly Balogh
    14
  5. FreePascal and the OrangePi

    Dumb ? What download should I use to install the latest version of FreePascal on the OrangePi 4 LTS, I am running Debian 3.0.6 Bullseye. The Orange Pi 4 LTS is an SBC…

    Terry A. Haimann, Florian Klämpfl, Travis Siegel
    2
  6. Threaded webserver and TJSONRPCModule instances: can I be sure there's only one?

    I'm using a TFPHTTPServerHandler in threaded mode. I'm also using a TJSONRpcModule. I see that, even if the calls come from different threads, only one instance of the…

    Luca Olivetti, Michael Van Canneyt
    7
  7. Problem with code aligning (probably)

      I wrote a generic class to test sorting algorithms and also benchmarking them. I have following problem:   When I change even a single line of code anywhere in that…

    Vojtěch Čihák, Jonas Maebe
    5
  8. Request to make TJSONStreamer.StreamProperty virtual

    For the JSON RPC library I wanted to supported dynamic arrays but in order to do this I needed to duplicate TJSONStreamer's ObjectToJSON and StreamProperty in order to…

    Hairy Pixels, Michael Van Canneyt
    3
  9. Exploring block statements with CodeTools not working

    I’m trying to look at the code in a the begin..end section of this sample program but for some reason when it gets to the BeginBlock node child count is always 0…

    Hairy Pixels, Mattias Gaertner, Ondrej Pokorny
    7
  10. Open array compatibility

    Another question I just ran in to. Why isn’t "array of TMyClass” compatible with “array of TObject” open array? TMyClass is a descendant of TObject and dynamic…

    Hairy Pixels, Michael Van Canneyt
    2
  11. Iterating over elements from GetDynArrayProp

    How can I iterate over the pointer that is returned from GetDynArrayProp? I tried to cast it as a dynamic array of the element type but calling Length() on the returned…

    Hairy Pixels, Michael Van Canneyt
    3
  12. [Question] How to submit our patch?

    We, a team working for Loongson, are ready to submit some patches which support a new architecture named LoongArch for FreePascal. [1] is one of repositories about…

    Jinyang He, Christo Crause, Sven Barth
    4
  13. Why TSqlScript has no parameters?

    I need to execute more than one statement. TSqlQuery it seems to accept multiple statements but then it gives a strange error (posgtresql error "no parameter $2", the…

    Luca Olivetti, Michael Van Canneyt
    2
  14. iOS

    I would be pleased to know where I can find the latest iOS parsed headers and possibly a hello program. Also, the cross compilers for iOS don't seem to be available at…

    Adriaan van Os, Hairy Pixels, Jonas Maebe
    8
  15. Variants with classes and records

    Is it possible to assign a class to a variant? I tried and get a crash. If not, why not? It’s just a pointer so I would expect it to work. I also see a “varRecord”…

    Hairy Pixels, Marco van de Voort, Sven Barth
    4
  16. CodeTools complete code

    I’m trying to use the CompleteCode function in the CodeTools library and doing some formatting I don’t want. Calling it over the “MyProcedure” method in the…

    Hairy Pixels, Bart, Mattias Gaertner
    8
  17. JSON RPC send server request to client

    Quick question, I’ve been using the JSON RPC package to receive messages from the client and dispatch methods but I need to send a request from the server to the…

    Hairy Pixels, Michael Van Canneyt, Wayne Sherman
    10
  18. JSONToObject with array of any type

    I have some JSON with a “arguments” value which can be an array of JSON type. When it’s received and parsed with TJSONDeStreamer.JSONToObject how can I represent…

    Hairy Pixels, Michael Van Canneyt
    1