fpc-pascal · 2022-10
- pthread_detach4
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?…
- Function references and coroutines0
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…
- Calculating CRC16?6
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…
- MQTT package for freepascal/lazarus?14
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…
- FreePascal and the OrangePi2
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…
- Threaded webserver and TJSONRPCModule instances: can I be sure there's only one?7
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…
- Problem with code aligning (probably)5
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…
- Request to make TJSONStreamer.StreamProperty virtual3
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…
- Exploring block statements with CodeTools not working7
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…
- Open array compatibility2
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…
- Iterating over elements from GetDynArrayProp3
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…
- [Question] How to submit our patch?4
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…
- Why TSqlScript has no parameters?2
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…
- iOS8
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…
- Variants with classes and records4
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”…
- CodeTools complete code8
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…
- JSON RPC send server request to client10
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…
- JSONToObject with array of any type1
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…
