fpc-pascal
Subscribe to this list Your subscription
Latest threads
- JSON RPC on Mac M1 fails3
I don’t know where to start debugging this yet but I found that compiling for the aarch64 target now breaks my Pascal language server which uses JSON RPC. It breaks…
- Bit manipulation helpers7
I tried to use the bit helpers like https://www.freepascal.org/docs-html/rtl/sysutils/twordhelper.testbit.html but the bit to test is 0..15. I expected this to work…
- Caller agnostic procedure variables25
This has been a constant problem for me with FPC and wanted to make a formal post with code examples since I've only mentioned it in passing before. How can it be…
- Sorting a Stringlist on ValueFromIndex3
Is there a quick way to sort a stringlist on it's .ValueFromIndex field instead of it's .Names field? James
- Text Only printing on Windows.4
Way back in the old Turbo Pascal days, it was super simple to send text to a printer. I had written a program that printed text on labels in the order the labels were…
- Issue with CSVDocument8
I have CSVDocument working, but something odd is happening. Everything is coming out as I expect, Except for the first cell.. it has some garbage at the beginning of it…
- Putting Delimited text into a StringList5
I'm trying to get Comma Delimited Text from a CSV File created with Microsoft Excel into a string list, but I keep getting spaces as delimiter characters. How can I…
- $PASCALMAINNAME error with SDL/IPhone4
I thought I had this working some years ago but I'm confused again. :) When trying to use SDL on iPhone I include: {$PASCALMAINNAME SDL_main} But when I compile I get a…
- Macro expanding error3
I have this macro: {$define TCallback := TCallback2} which gives a long list of these errors. warning: Expanding of macros exceeds a depth of 16. What does this warning…
- Strange behavior in generics.collections TDictionary1
Consider the following code: *** PROGRAM project1; {$mode objfpc} {$longstrings on} // see output below {$modeswitch advancedrecords} USES Variants,…
- Interface section overload procedures are all public2
// making only one procedure bugtest public in the interface section // makes all other bugtest procedures public as well! // Lazarus 2.0.0+dfsg-2 // FPC-Version: 3.0.4…
- Case statement for class introspection30
I saw a new syntax in Swift which I thought was clever and fits a pattern I've seen before. Basically it's a case statement for class types which lets you branch…
- Windows Volume Control1
Are there functions to check the current volume level and to set the volume with just FPC (not Lazarus) on Windows 10? All I need is the master system volume, not any of…
- StrToInt is using ShortString buffer?15
Hello. As I see in the commit https://gitlab.com/freepascal.org/fpc/source/-/commit/beecbf1581a986f544fde77aa428e05c21a35f6f StrToInt always uses ShortString buffer:…
- Crash on Windows for Aarch64 target3
Some time ago it was announced an experimental support for Windows on Aarch64 (namely in this post…
- Where can I find working code for xidel and dependencies2
I have been adviced to use xidel to analyze the content of websites, so when searcing for it I found that it is a FreePascal utility with the sources on GitHub.…
- freepascal.org SSL_ERROR_BAD_CERT_DOMAIN15
https://freepascal.org/
- FPF 3.04 and Synapse1
Is Synapse compatible with FPC 3.04 and which link should be used for the Synapse code as there are several ? Thanks Brian
- Lazarus Release 2.20
The Lazarus team is glad to announce the release of Lazarus 2.2. This release was built with FPC 3.2.2. Here is the list of changes for Lazarus and Free Pascal:…
- FPC Backtrace5
I'm curious if there is some way, perhaps with some directive or something to force a debug backtrace to happen, but without an error. I have a function that is getting…
- FPC and WebAssembly7
I'm glad to anncounce that FPC now covers working with webassembly in the browser. Because pictures say more than a thousand words, 3 demos: A modest "hello, world"…
- More Webassembly...0
I've just committed to the FPC git repo the wasmtime unit. This unit can be used to load and use the wasmtime library. Using this library you can compile, load and run…
- Improved FPC JSON-RPC support14
Thanks to the magic of RTTI and Invoke(), creating a JSON-RPC server has just become significantly easier ! Given an interface definition: IMyOtherInterface = interface…
- How to list IP and MAC of network adapters on Windows?9
Is there a way to enumerate the active adapters on a Windows computer with their IPv4 and MAC addresses? I am trying to convert a Linux reporting script to Windows, but…
- Creating a shared library (Linux)1
https://www.freepascal.org/docs-html/prog/progse55.html When analysing the mylib.o output file under Linux with nm -D mylib.o the answer is: no symbols. I have an export…
- Lazarus server maintenance1
On Monday 27 December 9.00 CET (8.00 GMT) the Lazarus server will be down for maintenance. This affects the following services: * Lazarus website * Lazarus mailinglists…
- {$include %dateyear%}5
I'm reading https://www.freepascal.org/docs-html/prog/progsu41.html It seems to me that {$include %dateyear%} , {$include %datemonthr%} and {$include %dateday%} are…
- 64 bit Linux syscall from 32 bit fpc program2
Is it possible to make a direct 64 bit Linux syscall from a 32 bit fpc programm?
- Not available duties1
I got a message from UPS this morning stating "! Duties, taxes, and fees totaling NaN are due for this delivery." Oops, I don't hope I will ever get a message from UPS…
- Is there a range limitation for the in operator?2
I have been debugging a file analyzer program which is supposed to show a record if one clicks in the hex representation of the binary file content. I have a function…
