fpc-pascal · 2021-06
- Trying to update to: Xcode 12.5, FPC 3.2.25
I'm jumping up to the latest xcode 12.5to be able to develop on iOs 14.x My trusty old FPC 3.0.5 worked just fine for iOs Target. But the simulator is a different…
- FPC & Lazarus moving to gitlab9
The Free Pascal and Lazarus teams are in the process of switching to Gitlab to manage their source code and issue reports. In order to lower maintenance of their own…
- How to check if a network is available?11
I would like to know how I can check if a remote network is available, i.e. if the VPN system has succeeded to connect the remote network. I need this in a class that…
- Tuples as variant arrays2
Is it possible something like this could work? Seems like it should but I get an error (got MyRecord expected variant). ==================================== {$mode…
- Linker error on simple program (windows)3
Given this unit: unit ExtMath; {$mode objfpc} interface function LeadingZeroBits(n: Byte): Integer; inline; implementation function LeadingZeroBits(n: QWORD; BitSize:…
- Push rules1
Martin asked how we intend to go about git commit authors/emails. These can of course be manipulated at will in Git. But gitlab can place some restrictions on what is…
- GetSaveFileNameA limited to 100 characters in default name13
I'm using GetSaveFileNameA() in a windows console program to obtain a save-as directory and file name, I am passing sending it a default file name with:…
- Will the size of an executable depend on the uses clause27
If I by habit add a bunch of often used units to the uses clause will that affects the size of the compiled application even if they are not in fact used? I.e. if there…
- TRegistry documentation11
Is there documentation for TRegistry somewhere? I've been searching for information on it, and so far I've only been able to find:…
- TMemoryStream.SetSize question.4
Why does TMemoryStream only implement one version of SetSize method? https://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/rtl/objpas/classes/classesh.inc?revision=49038&vi…
- Management operators memleaks5
Hi all I created a test case for rather unusual behaviour of management operators in fpc 3.3.1. In some specific cases they produce memory leaks. I suspect it's some…
- 0
- Remove last character from pchar4
I am a bit struggling with what should be fairly simple. I have a pchar where I am adding and removing characters. What I did so far is to allocate new memory every time…
- FPC 3.2.2 (In)complete Boolean Evaluation on 32bit MacOS1
it seems that the newest 32-bit FPC sometimes creates complete Boolean Evaluation rather than partial, which causes my application to crash. My context is like this:…
- Dependency of OpenSSL 1.0.2 still in FPC 3.2.0 on some platforms?43
I have an application which is ported from Delphi to FreePascal and will be used on Raspberry Pi (Debian based Linux). It uses Indy10 components. Indy is installed using…
- Linux Yad0
Has anyone called Yad (linux file manager) as an external program form a main program ? If so can you provide an example of how to do it and retrieve the selected file…
- is this a bug?1
I am using FPC v. 3.2.0 on both linux and windows. I use Firebird as a database (not sure that this is important). Say you write var AConnection:TIBConnection;…
- Option type12
Hi all I am trying to implement Option<T> type in FPC. type generic TOption<T> = record case IsSome:boolean of true: ( some: T ); false: (); end; However fpc just emits…
