fpc-pascal
Subscribe to this list Your subscription
Latest threads
- Why has the tkFloat default value changed?5
In FPC 3.2.0 the default "Default" value of a single/double property has changed from $80000000 (fpc 3.0.4) to 0. This breaks TWriter. The $80000000 means the property…
- Strange output from make when building 3.2.04
I am installing fpc 3.2.0 on a notebook running Ubuntu 20.04 LTS When I execute make clean and make sourceinstall I get this strange output message: :~/dev/fpc/3.2.0$…
- Lazarus Release 2.0.121
The Lazarus team is glad to announce the release of Lazarus 2.0.12. This release was built with FPC 3.2.0. Here is the list of changes for Lazarus and Free Pascal:…
- 50 Years of Pascal3
I thought this might interest folks. Apologies if I am late to the party. https://cacm.acm.org/magazines/2021/3/250705-50-years-of-pascal/fulltext Liam Proven –…
- Generic routines for both dynamic array and other collections12
I am trying to write some generic routines for working with containers. For example, GetLength function: unit u; {$MODE FPC} {$MODESWITCH DEFAULTPARAMETERS} {$MODESWITCH…
- Traits Proposal103
We had talked about this some time ago and it's been rattling around in my brain so I wanted to write it down into a formal proposal where we can discuss it and…
- Questions from Semi-Beginner6
Title: OS Upgrade Windows 7 to Windows 10 – Free Pascal Consequences ? I am currently running under Windows 7 but I MUST upgrade to Windows 10 Pro. My questions…
- self corrupted after jump to overridden method1
I have a strange bug, that suddenly Self becomes a random value when calling an overridden virtual method. It happens when activating a TCustomSQLQuery. Below is a gdb…
- compiling on command line linux3
Today I had to compile a program on my Linux server. The program was written for windows and needed libraries synapse and lazutils, and they were missing from the server.
- Windows Defender considers fp.exe a malicious program14
As of trunk r48648, Windows Defender deletes fp.exe after compilation because it considers it an infected file. It claims that fp.exe is infected with…
- Value:x:y syntax4
At https://lists.freepascal.org/pipermail/fpc-devel/2021-February/043569.html I saw the syntax "value: x: y". What is the name of this and where is it documented? I did…
- How to handle fpc.cfg on Ubuntu with 3.0.4 and 3.2.0 co-existing?8
I have an Ubuntu 18.04 laptop on which I have installed fpc 3.0.4/Lazarus 2.0.8 from sources via svn almost a year back into *my home dir*. No system-wide install. Now I…
- Statically linked-in fpc code10
I am getting crashes on Mac OS X 10.8.5 in a C-program with statically linked-in fpc code. The crashes seem related to fpc unit initialisation. This happens with…
- PTCGraph Causing 2177
I've been having issues with PTCGraph causing a runtime Error 217 : EAccessViolation: Access violation at seemingly random times in my program. The error is always on a…
- Patches for Issue #37906 - DNS over TCP6
I've added patches to resolve issue #37906, DNS over TCP, to the bug tracker: https://bugs.freepascal.org/view.php?id=37906 I've broken the changes into three patches:…
- Question about System.Move()17
This may be a silly question. I use System.Move() to move items in a dynamic array, like Move(FData[0], FData[OldEnd], FStart*SizeOf(T)); Where T is the type of the…
- Unit testing for RTL packages3
How should one go about adding unit tests to a package in the RTL? In many packages, for instance fcl-db, there is a tests folder with fpcunit units and programs in…
- SQLDB: Set port in TSQLConnector3
I'm trying to connect to a Firebird database with TSQLConnector, but I can't seem to find a way to set the port number. Looking at TIBConnection, there is a port…
- fcl-web: Trequest.RemoteAddr is empty (sometimes)9
I need to tailor the content based on the remote ip address. I use the property RemoteAddr of a TRequest, but sometimes it is empty. I see that it is a header, what I…
- TProxyStream.Check always raises error.1
Is there any reason, why TProxyStream.Check always raises Exception without checking, if err = S_OK (ISteam call succeeded). TOleStream overrides this Check to use…
- Avoiding File conflicts3
I am checking for the existence of a file in my main program loop that runs about 4 times a second waiting for keystrokes etc... If I see the file exists, I just want to…
- FPDoc now with Markdown support6
Hello ! I didn't make it quite in time for the new year, but still: The fpdoc engine (what is used to document the FPC & Lazarus units) is now capable of outputting the…
- GetClipboardFormatName causing an Error 21614
I'm trying to write a programs to get data from the windows clipboard that was put into it with Notepad++ using vertical editing. It uses a non-standard format and I'm…
- bug or feature2
library test; procedure Test; begin end; exports Test name 3 'abc'; // ^^^^^^^ end. Mattias
- Happy New Year0
Happy New Year everyone. Keep up the great work.
- Operators for a class1
I try to convert some C++ source to FPC, see below a short example from it. How can I define same operator with FPC trunk? class Cla { INT64 Num; public: Cla operator…
- Two versions of freemem() - are they equal2
Do both these method yield the same result, or is one better (performance, safer?) that the other? procedure FreeMem(p:pointer;Size:ptruint); procedure…
- Reading Serial Hex Data10
I'm trying to figure out how to read a packet of HEX Bytes of an unknown length that have no specific termination character over a serial port as efficiently as…
- CP_NONE string disappearing1
this code: program Project1; {$mode objfpc}{$H+} var a,b, c: string; begin a := 'x'; b := 'y'; SetCodePage(RawByteString(b), CP_NONE, false); c := a+b; …
- TCustomStream still using LongInt and not Int642
Is this a bug in FPC 3.2.0 where TCustomStream still uses LongInt in the Read() method, where all other methods in in the class uses Int64 type? Here is the FPC code:…
