fpc-pascal
Subscribe to this list Your subscription
Latest threads
- https://sourceforge.net/projects/freepascal/files/Source/3.2.2/ : Missing install.sh2
https://sourceforge.net/projects/freepascal/files/Source/3.2.2/ Missing install.sh
- 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…
- -FNsystem4
There are some dotted units in fpc, e.g. system.uitypes. So it would be nice to have -FNsystem in the default fpc.cfg (Delphi compatible). What do you think? Mattias
- FPC 3.2.2 released1
Finally, the Free Pascal 3.2.2 release is available from our servers and from sourceforge. Changes that may break backwards compatibility will be documented at:…
- Can a console app running as Linux service restart itself?5
I would like my service application to restart itself once per 24 hours, but only when nothing else is going on. So the application itself would know this but how can I…
- How to find where my app consumes CPU?22
I have a pretty sizable console app written with Delphi 15 years ago but ported to Linux using FreePascal (3.2.0) with Lazarus (2.0.12) as IDE. It runs as a systemd…
- FTP support gone - switch to HTTP ?11
Mattias Gaertner pointed out that Chrome no longer supports FTP downloads. I know that Firefox will follow suit really soon (if they haven't already). Since Edge now…
- 2
- Directory Tree60
Does FPC include any tools to display a directory tree, similar to the way files and folders are normally displayed, but I want to make my own custom entries. Have the…
- 50 years of Pascal, by the the author himself7
Thought this was kind of interesting, though it leaves short of mentioning the later Object Pascal evolution and thus Delphi and FreePascal...…
- Array range overflow in properties2
Is this a bug in properties and I should be getting an error? type TPixel = record components: array[0..3] of byte; property R: byte read components[10] write…
- Re: Nested function closures21
Maybe we're misunderstanding each other then. I'm responding to Sven when he says: I.e. all closures will be interface based because there are not enough real world use…
- non-virtual class methods called from virtual regular method4
consider the following example T1 = class class procedure CP1; procedure P1; virtual; end; T2 = class(T1) class procedure CP1; end; procedure T1.P1; begin …
- Detecting IO errors with INI file8
I'm trying to detect if an INI file is open by another program, but the way I normally do this is not working. // open the file for write and keep it open to test…
- Mustache templates implementation3
For my job I needed a Mustache templates library in pascal. Since dmustache (part of mORMot) fails the official mustache tests and did not work on the platform I needed…
