fpc-pascal · 2016-11
- Repeat result in random1
Here is a short program to print 10 random numbers: program testrandom; var i: Integer; begin Randomize; for i := 1 to 10 do WriteLn(Random); end. If I compile and run…
- Readln a password14
I wonder what the recommended way is to readln a password from console, as a standard Readln echoes the password. 1. SetConsoleMode seems to be Windows-specific 2. On…
- Using the LCL without Lazarus21
Most of the viewers of this message are probably already aware that I am totally blind and must rely on screen-reading software to put to voice that which appears on the…
- Is there a way to create a generic pointer to a generic record5
I'm trying to write a generic linked-list without the use of classes and objects. I need to be able to create generic pointer like this: Type generic PGList<T> =…
- For..in enumerator for generic records?16
I have a generic record I would like to enumerate using for..in loops. Is this even possible? I tried briefly and it wasn’t clear this was possible so I thought I’d…
- Other linkers support9
Hi all Could anybody provide some information on support for LLD and/or gold linker? Linker phase becomes a bottleneck for me. Last time I tried, ld scripts generated by…
- SysSetCtrlBreakHandler4
On Sun, Nov 27, 2016 at 12:07 PM, Michael Van Canneyt < While working recently on converting libwebsockets header to FPC, I ran into a need of adding Ctrl-Break handlers…
- avx2 32-byte alignment7
I'm preparing a DLL with AVX2 routines in FPC, since Delphi doesn't seem to have AVX2 support. I wonder if it is possible to align constants used for shuffling…
- FPC 3.0.2 Release Date5
There are some critical bugs in fpc 3.0 which are already fixed. So, why the 3.0.2 version was not released yet? Do you have any estimate about when it will be released?…
- Underscores in numerical literals - grouping41
I don't know about you, but I like this idea implemented in Java 7 and later. http://jasdhir.blogspot.co.uk/2016/11/using-underscores-in-literals.html I always find it…
- TReader / TWriter and interface type properties0
Hello. Is there serious reason that TReader/TWriter does not support interface type properties, or just not yet implemented? Michał.
- DOM and UTF-8 widestring conversion1
I'm hoping somebody could point me to the specific change (mantis bug #, revision #, user changes wiki page link, whatever) between 2.6.4 and 3.0.0 that fixes this…
- Error: Internal error 20140523022
Any ideas as to what this means? Seen on FPC 3.0.0 under AMD64 Linux Mint 17 The odd thing about this one is that : a) Always on the same blank line just after a…
- HIDAPI Bindings for FPC (on Linux)2
I have made a binding for libhidapi because i needed one and I could not find any. https://github.com/prof7bit/HIDAPI.pas (LGPL + static linking) It is not just an…
- MySQL 5.7 and FreePascal3
Is it possible to connect to MySQL 5.7 using TSQLConnection or will I have to downgrade my MySQL Version? I have FreePascal 3.0.0 which appears to be the most current…
- C translation question19
I’m trying to translate a function from C (taken from http://www.ecse.rpi.edu/Homepages/wrf/Research/Short_Notes/pnpoly.html) and although I think I got it correctly…
- can a class implement both a CORBA interface and an COM interface at the same time?1
I have a class implementing a Com interface. Now I want it to also implement a CORBA interface. Is it dangerous? Dennis
- docs for TStringList.CaseSensitive seem incomplete2
I did some testing and it seems the CaseSensitive property also has an affect on the Sort() method. Yet the documentation only lists that the property affects locating…
- The testcase example doesn't generate plain text report3
I am trying to run testcases. For testing the idea, I compile the example contained in: ./fpc-3.0.0/packages/fcl-fpcunit The compilation was successful. As I am blind,…
- Lazarus Release 1.6.20
The Lazarus team is glad to announce the release of Lazarus 1.6.2. This is a bugfix release. This release was built with FPC 3.0.0. The previous release Lazarus 1.6 was…
- Docs: Type A = Integer?5
Section 1.2.40 of Programmers guide (http://www.freepascal.org/docs-html/prog/progsu40.html#x47-460001.2.40) says, somewhere in the middle: Type A = Integer; Is it…
- Interface performance24
Some times when I want to communicate with a class I don’t have full scope access to I’ll use interfaces and the Supports function to call a method. I’ve noticed…
- FindFirstFileNameW missing from Windows unit0
The subject says it allready: Is there a reason that the Windows API function FindFirstFileNameW is not defined in the Windows unit? I had to define it myself to use it…
- A serious Memleak using delegates/implements (was: Delegate Interface class does not seem to be referenced counted)47
Tony Whyman had posted on August 10 a problem with the compiler using Delegates. He used a workaround to "solve" his problem and the thread died. So, I coded a new…
- TMS Aurelius Free today2
From Facebook, I just found this ORM became FREE today. http://www.tmssoftware.com/site/aureliusfree.asp I don't know whether it is better than mormot but might just…
- New Feature: "Management Operators"8
I saw on the bug tracker a patch submission by Maciej Izak about the feature "Management Operators". This feature is related to Automatic Reference Counting? Regards
- FreeBSD distro with fpc as star.44
Hello. There is a new FreeBSD "pure X" distro with fpc 2.6.4 and fpc 3.0.0 installed. https://forums.freebsd.org/threads/polydev-the-pure-x-freebsd-distribution.53085/…
- Generics and Scopes5
I have tried to compile some delphi projects using the latest FPC (3.0.0) release, and i got several errors related to Ggenerics feature. Reading the FPC documentation…
- picture preview2
if I want load a bitmap picture for extracting a small preview of it, what component or library would be best? My goal is to use pascal only without any external…
- googleapiconv raises ERESTAPI error2
i will try to use the googleapiconverter from the gooleapi examples directory. I got some excepions, so i reduced the problem to a generic one. I use the trunc of FPC…
- Incorrect Process startup2
Intermittantly (but consistantly), my app will run the wrong process using either TAsyncProcess or RunCommand. I understand it will be my bug, just looking for a clue :)…
- Blind Users9
Have any blind programmers managed to make use of the Lazarus IDE or the FPC command line to write interactive software that will run on the Windows7, 64-bit platform? I…
- Variants - Auto-convert nulls0
I need the variant type converting automatically null values to the default value of the target type (e.g False for Booleans, 0 for Integers/Floats). I know that i can…
- JSON Test Suite16
I just stubled acros this JSON test suite. There graph shows plenty of different JSON parsers and how they compare with this test suite. The Free Pascal JSON parser was…
- Hot switching RTL locale0
My web application is currently serving two languages, I use a simple TStringList based translation strings to achieve that. However, things are a little harder for…
- Missing messages24
Today I had detected that some emails does not reach me in this mailing list, in fact the last ones from "leledumbo" about JSON parsing, but Graeme and Michael ones…
- fcl-pdf change0
For those using the fcl-pdf package: There has been a change in the API. Well, there were many additions, but this change may influence existing code. Till now, the…
- Implicit conversion problem with TDate type9
I use MWA's IBX for Firebird connection and have problem with date parameters. Tony provided to me a test program a suggested write to the FPC list. The simple test…
- Does FPC has anything like TCriticalSection.Acquire with timeout?1
If a CriticalSection can acquire (but with a timeout), it can avoid any gridlock. I googled and Delphi seems to have function which does time out function …
