Sign in Join

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

Mailing lists / fpc-pascal

fpc-pascal · 2018-06

  1. Free Pascal console programs on Android are easy

    http://turbocontrol.com/gnuroot.htm is a new (unpublished) web page. Feedback appreciated!

    Paul Breneman, Mark Morgan Lloyd, Sandro Cumerlato
    15
  2. 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
  3. 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
  4. Daemon using TTimer on Windows

    I need to build a daemon app on Windows. It will need a timer to performe some tasks. This timer could be big among 15 min, 30 min, 2 hours, etc. I thought that I can…

    Marcos Douglas B. Santos, Giuliano Colla, Marc Santhoff
    10
  5. TFPGObjectList error

    I’m trying to use TFPGObjectList but I get an error. Is the unit busted? If so is there another generic list class in the RTL? type TVec3List = specialize…

    Ryan Joseph
    0
  6. How to list USB devices on Windows?

    I am writing a class that interfaces to a specific USB device HID type and I would like to list all such devices currently connected to the PC (usin Windows). On Linux I…

    Bo Berglund, José Mejuto, Marc Santhoff
    4
  7. Format specifier in FPC?

    I have the following format specifier in C : %+.05f. What would be the FPC equivalent? A float is printed like this: -0.70711 The specified '+' will explicitly print out…

    Darius Blaszyk, Michael Van Canneyt
    2
  8. Lazarus and Linked Lists

    Is there a basic linked List object for Lazarus? Terry Haimann

    Terry A. Haimann, leledumbo
    1
  9. how to get rid of hints

    How to get rid of hint 6068? With fpc 3.1.1 using some units like fgl the compiler emits: .../fpc/rtl/objpas/fgl.pp(899,1) Hint: "inherited" not yet supported inside…

    Mattias Gaertner, Florian Klämpfl
    1
  10. macos make 3.1.1 fails

    Trying to compile fpc 3.1.1 i386 on Mac High Sierra 10.13.5: make CPU_TARGET=i386 PP=/usr/local/lib/fpc/3.0.4/ppc386 all The CPU_TARGET seems to be ignored:…

    Mattias Gaertner, Anthony Walter, C Western
    3
  11. Proper preprocessor?

    Are there any plans to make a proper preprocessor like #define in C? I’m not saying this is good programming practice or anything but I just had a really annoying copy…

    Ryan Joseph, denisgolovan, Florian Klämpfl
    76
  12. Compiling 3.1.1 trunk

    Hi, newbie to fpc (but not Pascal) here. I'm trying to compile the fpc trunk from svn on linux.  I managed to find the buildfaq, but I'm running into problems. I've…

    Jim Lee, Jonas Maebe, Sven Barth
    4
  13. Support for "class threadvar" sections inside class and record types

    Hello together! Announcing a small feature this time, but some might appreciate it: FPC now supports the declaration of threadvars inside class and record types. ===…

    Sven Barth, Anthony Walter, Marco van de Voort
    9
  14. Default record fields

    I want to do a pivot away from the macro stuff to ask another question. Since I’ve wanted to contribute to the compiler for so long and I finally have a little…

    Ryan Joseph, Anthony Walter, Jim Lee
    19
  15. math with infinity and NaN

    I’ve been updating my old programs to use the MATH unit in freepascal and while testing things I came across a runtime error 217 Invalid floating point operation. …

    James Richters, Adriaan van Os, C Western
    23
  16. Equivalent of Delphi map files...

    Hello again :), I just forgot to ask; Delphi has an option to generate a so called "map file" that contains the function addresses matched with the function names when…

    m utku, Adriaan van Os, Jonas Maebe
    10
  17. Feature announcement: Dynamic array extensions

    Hello together! I'm pleased to announce that after nearly a year various extensions for dynamic arrays have been finished. This includes the following features: -…

    Sven Barth, Anthony Walter, Bart
    93
  18. Multiple thread heaps

    If the default memory manager for FP creates a heap for each thread, what happens if an object is created in one thread and freed by another ? Also, do calls to New ()…

    Terry Mead, Fabio Luis Girardi, Florian Klämpfl
    8
  19. Lazarus and Cocoa

    I’m trying to make a lazarus control which wraps an NSView but I haven’t used Lazarus before and I don’t really understand the architecture of the system. It looks…

    Ryan Joseph, Sven Barth
    1
  20. I am trying to install zeosdbo

    I am trying to install zeosdbo onto my Lazarus install and am getting the following error during the rebuild: Build IDE: Exit code 512, Errors: 1lazarus.pp(1,1) Fatal:…

    Terry A. Haimann
    0
  21. Realtime and freepascal???

    For a hard real-time project I am considering using freepascal. As this is my first endeavour in real-time I would like to ask the community on their experiences. Is FPC…

    Darius Blaszyk, Brian, Dennis
    11
  22. AVX512 in ASM - From where should I start?

    In the case that I feel brave enough to code support for AVX512 on asm sections, from where should I start? This question is related to:…

    Joao Schuler, Florian Klämpfl
    3
  23. record alignment

    I have a struct I need to port from C but the size I’m getting in Pascal is wrong. From C sizeof(AAPLVertex) = 32 but in Pascal sizeof(AAPLVertex) = 24. The alignment…

    Ryan Joseph, Karoly Balogh (Charlie/SGR
    2
  24. Better usage of "with"

    I was just watching a video from Jonathan Blow (the developer of a really popular game named Braid) on a new language he’s working on to get around all the cruft and…

    Ryan Joseph, Marco van de Voort, Marcos Douglas B. Santos
    15
  25. round(2.5)=2

    The round function behaves different than in TurboPascal, and its English Wiki page differs from the German page. When given an argument halfway between to integers,…

    Klaus Hartnegg, Bernd Oppolzer, Florian Klämpfl
    19
  26. Re: Regression in StrToDateTime()

    You also can make your own procedure to fix the issue for yourself. Like you can rewrite the function StrToDateTime() to change all '. ' to '.' and then call the…

    Carmel computer - Antal, LacaK
    2
  27. FP IDE browse-function (search symbol) errors

    I'm struggling with two issues with the Search,Symbol (Browse) function of the FreePascal IDE. Are these known issues, or is something wrong with how I installed or…

    Klaus Hartnegg, Marco van de Voort
    1
  28. Migrate Delphi XE5 to FPC/Lazarus, any advice?

    I have this big tomographic data interpretation and visualization program on my hands for maintenance. It was started back in 2002 by another developer using Delphi7 and…

    Bo Berglund, Mattias Gaertner, Michael Schnell
    7
  29. Dynamic arrays using management operators

    Since we were talking about dynamic arrays I was curious to see if they could be implemented using the new management operators so I made a little proof of concept by…

    Ryan Joseph, Martin Schreiber, Michael Van Canneyt
    14
  30. Anchors on a child form

    If I create a child form by setting Parent:=other_form; in FormCreate, it cannot be dragged to a new position by the user. If I then remove the top and left anchors by…

    Martin Wynne, Giuliano Colla, Mattias Gaertner
    5
  31. OSv v0.51.0 released with FreePascal support

    the announcement on the OSv list: https://groups.google.com/forum/#!topic/osv-dev/4KWShVlt08s An excellent wiki article has been written back in september 2016 about…

    Jy V
    0
  32. HTTPRoute.pas and TRouteObject

    Working on a standalone web project using the new routing. I have a class descended from TRouteObject. My problem is that the constructor cannot be marked override so…

    Kevin Jesshope, Marcos Douglas B. Santos, Michael Van Canneyt
    3
  33. := overload with implicit arrays in generics

    Is this is a bug or am I not doing something right? I wanted to assign an implicit array (I think thats what those parameters are being called now) so I made an overload…

    Ryan Joseph
    1
  34. C# stackalloc

    As a sanity check for myself if you remember a while ago I posted about an idea for “stack aliases” to override the memory allocation for classes. No one really…

    Ryan Joseph, Michael Van Canneyt, Unknown author
    5