Sign in Join

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

Mailing lists

fpc-pascal

Subscribe to this list Your subscription

All words must match. Use "exact phrase", -word, -"phrase", from:name, from:"first last", list:fpc-devel, year:2011, before:2012-03, after:2010, in:subject.

Latest threads

  1. Hint converting to int64

    Hello: FPC: 3.0.4 (Realease from Lazarus 1.8.4 SVN: 57972) OS: Windows7 32bits / Linux 64Bits I have this code and I get a hint ---------- var…

    Santiago A., Mark Morgan Lloyd, Martok
    4
  2. Unbuffering I/O

    I think I've seen this question asked before, my apologies if this was recently. I've got two programs intended to be functionally identical, one in Perl and the other…

    Mark Morgan Lloyd, Henry Vermaak, Marc Santhoff
    13
  3. Branch table

    Why the code below does exit gracefully without prints anything? Sure, it is for my poor knowledge of the assembler, but in some details, please... program branch;…

    Marco Borsari, Florian Klämpfl, Giuliano Colla
    12
  4. Type helper for JNI pointers

    when you use JNI functions you always need to repeat "env" a lot: var   javaClass: jclass;   javaObj: jobject; begin   //javaClass := ...   javaObj :=…

    Benito van der Zander, Andrew Haines
    2
  5. No breakpoint capability

    I updated to FPC 3.0.4 and can't get breakpoints to work. I get a "can't set breakpoint message" on all lines. I am in debug mode and have "generate debug information"…

    john youngquist, Christo
    1
  6. How is interface variable implemented?

    if I have this test program below: program testi; {$INTERFACES CORBA} uses sysutils; type   IInterfaceA = interface      procedure Increment ;   end;   { TObjectA…

    Dennis, Sven Barth
    1
  7. Reading AM2302 temp/humid sensor on RaspberryPi?

    I wonder if there are any demo projects around for reading the AM2302 DHT sensor on a RaspberryPi through FreePascal? Any links to sample code would be appreciated. I…

    Bo Berglund, Alexander Hofmann, Mark Morgan Lloyd
    13
  8. Link with GCC object files

    Hi, I have a question. Is it possible to link FPC for Linux (PC and ARM) with GCC or other C++ object files? Andreas Berger

    Andreas, Andreas Berger, Sven Barth
    2
  9. Very slow startup of Frepascal programs on just one system

    I am experiencing very slow startup of all of my freepascal programs for windows on just one computer. Normally they all start pretty much instantly, but I just got a…

    James, Marco van de Voort, Sven Barth
    4
  10. FPC for linking only

    Is it possible to use FPC for linking only? (assuming that .ppu/.o files were created by fpc previously) using options -sh Generate script to link on host or -st …

    Dmitry Boyarintsev, leledumbo
    1
  11. Docs: portability differences between Borland/FPC

    There is the old "Porting TP" document at <https://www.freepascal.org/port.var>, but it is rather incomplete (and probably on an older language level). It also covers…

    Martok, Bart, Florian Klämpfl
    13
  12. Auto vars (again)

    I had some free time recently so I decided as a learning experience to fork the compiler and implement the “auto var” idea that was mentioned a few weeks ago. What I…

    Ryan Joseph, Jonas Maebe, Maciej Izak
    7
  13. why can't we define class operator for old fashion object type, but ok for 'advanced record' type?

    I was trying to use a generic class TDictionary<T>  with type T. This class has a method that compares a variable of T with another one. When I specialize a class using…

    Dennis, Bo Berglund, Dennis Poon
    18
  14. tply: start conditions

    this is more of a generic lex question, but since plex doesn't support the flex extension that could easily fix it, I'm asking here. Take these lex rules:…

    Martok
    2
  15. Rebuilding RTL

    If I cd to the rtl directory in the fpc sources and run make they are compiled into the /rtl/units/x86_64-darwin directory. 1) How do I compile the ppc386 units? the…

    Ryan Joseph, Sven Barth
    5
  16. Operator overload bug

    I mentioned this as an aside a while ago but I don’t remember getting a response so I’d like to formally reintroduce the issue. Should I file a bug report for this…

    Ryan Joseph, Ben Grasset, John Doe
    18
  17. access violation?

    I was doing some testing today (Mac) and discovered that calling Free on a nil object didn’t cause a EAccessViolation exception. Why doesn’t that crash? var c:…

    Ryan Joseph, Dmitry Boyarintsev, Mattias Gaertner
    17
  18. Assigning open array

    Hello: I'm not very sure how open arrays are copied program Project1; Type TMyRecord=record somedata:string; ArrayInt:array of integer; end; TRecordList=array of…

    Santiago A., Dmitry Boyarintsev
    1
  19. Pascal Neopixels

    I'm not sure what would be the correct list for this question since it involves writing Pascal code and not Lazarus, so here goes ... Can anyone offer me any advice or…

    Anthony Walter, DaWorm, Michael Ring
    5
  20. Syntax changes suggestions

    I have some suggestions of change to freepascal syntax, just to debate (All are backward compatible) - Declaring variables inside blocks, and loop variables - Autofree…

    Santiago A., Anthony Walter, Ben Grasset
    112
  21. Generics - extending TFPGObjectList

      I needed to extend TFPGObjectList and I found two wierd things (FPC 3.1.1 r39507):   program project1; {$mode objfpc}{$H+}   uses   Classes, FGL;   type  …

    Vojtěch Čihák, Sven Barth
    3
  22. How __FPC_specific_handler() is invoked

    I am writing my own __FPC_specific_handler() but I can't figure out when this function is registered. I guess this function is registered to the OS to be invoked when an…

    Matias Vara, Sven Barth
    4
  23. No type info available for this type (Enumerated type with constant assignment)

    I am trying out the examples at http://wiki.freepascal.org/Enumerated_types but The following simple program will raise compiler error "No type info available for this…

    Dennis, Dennis Poon, Martok
    6
  24. Pascal units to connect to an Exchange server

    to send e-mails programmatically using a Microsoft Exchange account. Using Windows resources, I could call Outlook automation API to do this task. But is the same…

    luciano de souza, Bo Berglund, Sven Barth
    5
  25. GetAppConfigDir(False) in a Citrix environment

    One of my apps also runs in a Citrix environment. It does not retrieve it's settings. If appears that GetAppConfigDir(False) returns "C:\Users\<username>\AppData\Local".…

    Bart, Graeme Geldenhuys, Michael Van Canneyt
    5
  26. How to translate Delphi Assembly MOV EAX,[EBP+4]

    The following delphi code when compiled by FPC, raised these errors: Compile Project, Target: lib\x86_64-win64\Project1.exe: Exit code 1, Errors: 10, Warnings: 2…

    Dennis, Giuliano Colla, Sven Barth
    4
  27. A new fpc desirable feature

    As everybody is suggesting new fpc features, I feel it right to add my own proposal, to make the language more useful and user friendly. I propose the support for the…

    Giuliano Colla, Dmitry Boyarintsev, Jim Lee
    10
  28. Loss of precision when using math.Max()

    I stumbled upon something the other day that was causing numerical differences between compiled Delphi and FPC code. Executing the following sample console application…

    Alan Krause, C Western, Florian Klaempfl
    41
  29. Coercing record fields together

    Could I do some RTL magic on a record to loop over its fields and set them to another record by name? In the example below I want to set all the fields in TRecA to…

    Ryan Joseph, DaWorm, gabor
    5
  30. How to use Google Protocol Buffer

    To connect to a server, I need to use Google's Protocol Buffer format. The only workable parser to convert the protocol definition file to pascal reader/writer source…

    Dennis
    0

Browse by month

2026
2025
2024
2023
2022
2021
2020
2019
2018
2017
2016
2015
2014
2013
2012
2011
2010
2009
2008
2007
2006
2005
2004
2003
2002
2001
2000
1999