Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal

fpc-pascal · 2016-11

  1. Repeat result in random

    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…

    Tony, Pierre Free Pascal
    1
  2. Readln a password

    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…

    Adriaan van Os, Bart, Dmitry Boyarintsev
    14
  3. Using the LCL without Lazarus

    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…

    BobJ, fredvs, Graeme Geldenhuys
    21
  4. Is there a way to create a generic pointer to a generic record

    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> =…

    Le Duc Hieu, Sven Barth
    5
  5. For..in enumerator for generic records?

    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…

    Ryan Joseph, Graeme Geldenhuys, leledumbo
    16
  6. Other linkers support

    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…

    denisgolovan, fredvs, Jonas Maebe
    9
  7. SysSetCtrlBreakHandler

    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…

    Dmitry Boyarintsev, Tomas Hajny
    4
  8. avx2 32-byte alignment

    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…

    Marco van de Voort, Adriaan van Os, Jonas Maebe
    7
  9. FPC 3.0.2 Release Date

    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?…

    African Wild Dog, Jonas Maebe, Juha Manninen
    5
  10. Underscores in numerical literals - grouping

    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…

    Graeme Geldenhuys, Dmitry Boyarintsev, Flávio Etrusco
    41
  11. TReader / TWriter and interface type properties

    Hello. Is there serious reason that TReader/TWriter does not support interface type properties, or just not yet implemented? Michał.

    gabor
    0
  12. DOM and UTF-8 widestring conversion

    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…

    Seth Grover
    1
  13. Error: Internal error 2014052302

    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…

    Tony Whyman, Pierre Free Pascal, Sven Barth
    2
  14. HIDAPI Bindings for FPC (on Linux)

    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…

    Bernd, Michael Van Canneyt
    2
  15. MySQL 5.7 and FreePascal

    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…

    Terry A. Haimann, Lars, Mattias Gaertner
    3
  16. C translation question

    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…

    Ryan Joseph, Bernd Oppolzer, Bo Berglund
    19
  17. can a class implement both a CORBA interface and an COM interface at the same time?

    I have a class implementing a Com interface. Now I want it to also implement a CORBA interface. Is it dangerous? Dennis

    Dennis
    1
  18. docs for TStringList.CaseSensitive seem incomplete

    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…

    Graeme Geldenhuys, Michael Van Canneyt
    2
  19. The testcase example doesn't generate plain text report

    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,…

    luciano de souza, Graeme Geldenhuys
    3
  20. Lazarus Release 1.6.2

    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…

    Mattias Gaertner
    0
  21. Docs: Type A = Integer?

    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…

    Ewald, leledumbo, Mattias Gaertner
    5
  22. Interface performance

    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…

    Ryan Joseph, Andrew Haines, Graeme Geldenhuys
    24
  23. FindFirstFileNameW missing from Windows unit

    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…

    Jürgen Hestermann
    0
  24. A serious Memleak using delegates/implements (was: Delegate Interface class does not seem to be referenced counted)

    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…

    Marcos Douglas, Graeme Geldenhuys, Jürgen Hestermann
    47
  25. TMS Aurelius Free today

    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…

    Dennis, leledumbo, Luiz Americo Pereira Camara
    2
  26. New Feature: "Management Operators"

    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

    African Wild Dog, denisgolovan, Lars
    8
  27. FreeBSD distro with fpc as star.

    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/…

    fredvs, Fred van Stappen, Graeme Geldenhuys
    44
  28. Generics and Scopes

    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…

    African Wild Dog, Michael Van Canneyt, Sven Barth
    5
  29. picture preview

    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…

    Marc Santhoff, Andrew Haines, leledumbo
    2
  30. googleapiconv raises ERESTAPI error

    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…

    Andreas Frieß, Michael Van Canneyt
    2
  31. Incorrect Process startup

    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 :)…

    Steve Gatenby, Ewald
    2
  32. Blind Users

    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…

    BobJ, Felipe Monteiro de Carvalho, Fred van Stappen
    9
  33. Variants - Auto-convert nulls

    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…

    African Wild Dog
    0
  34. JSON Test Suite

    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…

    Graeme Geldenhuys, Benito van der Zander, leledumbo
    16
  35. Hot switching RTL locale

    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…

    leledumbo
    0
  36. Missing messages

    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…

    José Mejuto, Bo Berglund, David W Noon
    24
  37. fcl-pdf change

    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…

    Michael Van Canneyt
    0
  38. Implicit conversion problem with TDate type

    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…

    Gabor Boros, Graeme Geldenhuys, Jonas Maebe
    9
  39. Does FPC has anything like TCriticalSection.Acquire with timeout?

    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 …

    Dennis, Graeme Geldenhuys
    1