fpc-pascal · 2017-02
- FreePascal Windows - Force files to write to disk41
I have a freepascal Windows console application that I recently ported over from DOS Turbo Pascal. I am have a small settings file that I write to disk that keeps…
- https how does it work4
How does httpy work, what is needed? TLS/SSL library? A http webserver without encryption I programed already on my own and wanted to integrate https. Is there any…
- Feature announcement: Management Operators14
I'm pleased to finally announce (again but now officially ;) ) the additional record operators: Initialize, Finalize, AddRef and Copy. Available in latest FPC trunk…
- FPC 3.0.2 released!9
Finally, FPC 3.0.2 has landed. FPC 3.0.2 is an update to 3.0.0 that contains some compiler bugfixes and library progress since 3.0.0 Building is still in progress and…
- MSEide+MSEgui 4.4 for Free Pascal 3.0.26
MSEide+MSEgui 4.4 for Free Pascal 3.0.2 has been released: https://sourceforge.net/projects/mseide-msegui/ There are also new versions of the ARM (Raspberry Pi) cross…
- TProcess usage and reading program output7
Can anybody see if there is something wrong with the code shown below. The code is copied from one of my earlier projects where I call the FPC compiler and it worked…
- parser combinator library1
Eight years ago someone asked whether there is a parser combinator library for free pascal, nothing like that existed at that time and also does not seem to exist up to…
- lldb problems with Xcode 8.2.13
I am experiencing some LLDB problems in macOS Sierra 10.12.3 with Xcode 8.2.1. Its running the LLVM compiler with FPC 2.6.4. I can no longer get breakpoints to…
- pyacc and using hexadecimals in the code0
I would like to use hexadecimal values in a pyacc script. However, when doing so pyacc thinks I am using a rule assign (or whatever the correct term is) eg $$ := $1 as…
- Typecast class-of to class2
FPC allows to type cast a class-of variable to a class instance. Is this a bug or a feature? var c: TClass; begin TObject(c).ClassName; // crash end. Mattias
- Castle Game Engine 6.0 released0
We're proud to release Castle Game Engine 6.0, an open-source 3D and 2D game engine for Object Pascal. This release is a culmination of more than a year of intensive…
- Writeln in threads2
Is writeln thread safe? I’m getting some strange crashes and I’m curious if they’re related to calling writeln on multiple threads. Ryan Joseph
- GetEnv and large strings.1
I am using Free Pascal Compiler version 2.6.2-8 [2014/01/22] for x86_64 Copyright (c) 1993-2012 by Florian Klaempfl and others Target OS: Linux for x86-64 I created a…
- uses myunit in '../src/myunit.pas' ?45
Hello. There is myprogram.pas in /home/me/myproject/example. This program uses myunit.pas from /home/me/myproject/src. myunit.pas uses myunit2.pas and myunit3.pas that…
- TProcess interacting with Octave 4.2 on Win320
I am having trouble reading/writing to Octave through a TProcess on Win32. Full source and primitive demo here:…
- Overriding generic methods2
Is overriding methods from specialized generic classes supported in any way? I tried the following below but it doesn’t seem to work. type generic TList<T> = class…
- KeyDown routine and Ctrl+Q6
I use a KEYDOWN routine in my main TFORM to check for the key Ctrl+Q: ----------------------------------------------------------------- procedure…
- FPC 3.0.X next to 2.6.4 on Linux9
I have installed FPC 2.6.4 for a long time on my Linux with install.sh script in /usr dirs. I would like to install FPC 3.0.0 but keep 2.6.4 as "default" version due to…
- TJSONData.FindPath() troubles where data contains dots.4
I've studied the following documenation to make sure I'm using FindPath() correctly. http://www.freepascal.org/docs-html/3.0.0/fcl/fpjson/tjsondata.findpath.html Now, I…
- class property accessor static17
The getter/setter of a class-property must be "static" (Delphi compatible). If I understand "static" correctly, then "static" simply omits passing the class as…
- fphttpserver and streaming ?0
Hello. Is it possible to do a web-streaming-server with fphttpserver ? If yes, are there examples ? If no, what are the steps to realize it? In a loop, a buffer of float…
- Parameterless constructors are not allowed in records or record/type helpers9
Why is this restriction in place and what are the alternatives if any? Some times I want to just provide a method that sets default values for a record without any…
- Any use notes for javapp2
So does anyone have any hints, tips, use notes, instructions, ... for how to use the "javapp" tool? - Jon Jon Foster JF Possibilities, Inc.
- IsValidIdent() and identifiers escaped with &5
Consider this program, which returns False: program Project1; uses sysutils; var &begin: boolean; begin &begin:=IsValidIdent('&begin'); WriteLn('IsValidIdent(''&begin'')…
- A jit tool for command line compilation of Pascal?2
Several years ago I seem to remember using a FPC tool that allowed me to write Pascal code and have its source file loaded, compiled and executed at the command line. If…
- for loop vs while loop7
Just curious (been in a discussion with somebody else). Is there a performance difference between a FOR loop and a WHILE loop? Not sure if it will make a difference, but…
- fpc and voip ?20
Hello. I have lot of success to play mp3 files with library mpg123+portaudio and fpc unit fphttpclient.pas. Andrew Haines did a perfect work with his TThreadHttpGetter…
- How to use pipes ?9
Hello. I have done lot of search on internet about pipes without success. Even for Delphi. no demo nor explanation. The same in fpc wki page. For example, how to use…
- question about fphttpclient1
I use with great success (and pleasure!) the unit fphttpclient under winxp, mageia and raspbian with some code like WITH TFPHTTPCLIENT.CREATE(NIL) DO BEGIN REP:=GET(REQ);
- destructor3
fpc allows to declare a method with the destructor keyword, that is not a real destructor, because it does not free the memory. For what is this feature good for? For…
