fpc-pascal
Subscribe to this list Your subscription
Latest threads
- How to inline CompareFunc to Sort method in generic abstract class10
I wrote a generic abstract class - a list based on dynamic array (i.e. array of T;) and this class can be specialized elsewhere with any type (records or classes).…
- Program efficiency8
I was wondering if breaking up large complicated formulas into smaller sections that use more variables is less efficient than just the large formula. In other words.. is
- Strange floating-point result2
by chance, I stumbled upon a strange behavior in floating-point calculation. Here's the example: program Project1; var f: double; n: integer = 1758; m: integer = 0; begin
- GStreamer API unit added3
For all people interested in sound/video streaming: After lots of work, I added the gst unit to the FPC packages. This unit contains the import declarations for the full…
- Test0
Test, please ignore . Dimitrios Chr. Ioannidis
- Can't build single package7
IIRC I did it in the past but now: D:\fpc-3.2.2\packages\fcl-web>make C:/FPC/3.2.2/bin/i386-Win32/ppc386.exe fpmake.pp -n -Fu../../rtl -Fu../../packages/paszlib…
- Play audio on windows0
I’m trying to port a Mac program to Windows. Which is the preferred low-level API to use which FPC includes units for (if any)? It would be nice to set volume and…
- 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…
- JSON RPC changes in 3.3.114
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…
- Lazarus Release 2.2.40
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…
- Enum property can't be published6
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?
- mciSendString with long file names14
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…
- Learning Guide Focused On Android and Mobile0
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…
