Sign in Join

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

Mailing lists / fpc-pascal

fpc-pascal · 2019-11

  1. FCL-DB Classes Implementation.

    Are there plans to implement TArrayField, TADTField, TReferenceField, TDatasetField classes in fcl-db package? Thank you. Regards. Ioulianos Kakoulidis.

    Kakoulidis Ioulianos, Michael Van Canneyt, Tony Whyman
    6
  2. Two possible generics bugs

    Testing on 3.3.1. Are these both bugs? I wanted to ask first before filing a report. {$mode objfpc} program test; uses FGL; // No Error specializing TFPGList in…

    Ryan Joseph, Florian Klämpfl, Sven Barth
    14
  3. Static linking to C library on Windows

    Moving on to Windows now and more basic problems. I've built from Python sources again but I'm not sure about static libraries on Windows. There is a .dll which is a…

    Ryan Joseph, Marco van de Voort
    1
  4. Static linking to C library on Linux

    I'm trying to link to a static library (built from Python sources) in Pascal and having troubles on Linux. On Mac where I have experience I successfully link and every…

    Ryan Joseph, Jonas Maebe, Karoly Balogh (Charlie/SGR
    7
  5. Variant part in objects?

    Is there a reason that objects don't support variant sections like with records? Maybe they mess with the VMT table when virtual methods are added? I just posted my…

    Ryan Joseph, Gerhard Scholz
    1
  6. Pre-allocated TFPGList or similar

    I need a pre-grown list which I can put (not insert!) items into at indexes without getting "List index out of bounds" errors. For example I want to start with a list…

    Ryan Joseph, Michael Van Canneyt, Sven Barth
    5
  7. Strange experience with TJsonConfig.Clear

    I experienced some strange behaviour with TJSONConfig.Clear. I'm using fpc 3.0.4 32-bit on Win10-64. (While I do have fpc trunk as well, the program is a Lazaurs GUI…

    Bart, Michael Van Canneyt
    2
  8. How to translate C macros which use stringification?

    I made a simple example to demonstrate the problem: #include <iostream> using namespace std; #define MACRO1(x) \ cout << #x << "(" << (x) << ")"; \

    Gabor Boros, Ryan Joseph
    1
  9. Writing to a drive which may be spun down

    Running Ubuntu 18 LTS, I have a console-mode number-cruncher which writes occasional output files. It works just fine if the output is directed to a drive which is…

    Brian, Bo Berglund, James Richters
    9
  10. get_caller_frame

    I came across get_caller_frame in some unrelated code and I was just curious about this so I wanted to ask. What does get_caller_frame return exactly? Is this a pointer…

    Ryan Joseph, Florian Klämpfl, Sven Barth
    6
  11. cvar external symbol name

    Do cvars not allow external symbol names like functions do? With function I can declare a name but for cvar I'm getting an error. PyBaseString_Type:PPyTypeObject; cvar;…

    Ryan Joseph, Jonas Maebe
    2
  12. DirectoryExists of FreeBSD 12- Java solution

    https://github.com/jnr/jnr-posix/issues/126 these guys had found the reason of broken Java code on freebsd 12: they now detect ABI version and use different struct on…

    AlexeyT
    0
  13. DirectoryExists on FreeBSD 12 problem

    freebsd src is https://github.com/freebsd/freebsd/blob/master/sys/sys/stat.h it has 2 defines for "stat": usual struct stat {     dev_t     st_dev;       …

    AlexeyT
    0
  14. Add API to official documentation search

    Could FPC make an API for the official documentation search at https://www.freepascal.org/docsearch/docsearch.var so we could make calls like:…

    Ryan Joseph, Anthony Walter, Bo Berglund
    18
  15. Generics in Objective-C mode bug?

    Is this a bug I should report? Knowing what I do about generics now I think the type check needs to be suspended until the type is actually specialized. {$mode objfpc}…

    Ryan Joseph, Sven Barth
    2
  16. Generic type conflicts

    I've wanted to make a generic version of a vector for a while but I always give up because it seems not very possible. It's probably not even a great idea because many…

    Ryan Joseph, Ben Grasset, Cyrax
    25
  17. Generic operator overload problem

    Is this a bug or did I do something wrong? The minus operator overload seems to be getting confused and I get a "Can't determine which overloaded function to call" error…

    Ryan Joseph, Sven Barth
    2
  18. TStringList.SetCommaText needs refactor

    It's obvious this needs to use SetDelimetedText with other params (2nd 3rd) Procedure TStrings.SetCommaText(const Value: string); begin   CheckSpecialChars;  …

    AlexeyT, Michael Van Canneyt
    1
  19. StringList micro optimization

    Procedure TStrings.SetDelimitedText(const AValue: string);  has about 16 calls to Length(AValue), so make a variable NLen to speed up it. Alexey

    AlexeyT, Michael Van Canneyt
    1
  20. TEventObject.Create site help

    https://www.freepascal.org/docs-html/current/fcl/syncobjs/teventobject.create.html Create creates a new event object with unique name AName. The object will be created…

    AlexeyT, Michael Van Canneyt
    1
  21. TEventObject.ManualReset help page

    https://www.freepascal.org/docs-html/current/fcl/syncobjs/teventobject.manualreset.html text is poor, even the text in .Create (about ManualReset) is more detailed, so…

    AlexeyT
    0
  22. FPC cannot understand 1-char string as PChar

    FPC 3.3.1-r43022 [2019/09/16] for Linux x64. This code crashes, because fpc sees 'x', 'y' wrong:   Py_BuildValue('{sLsisisisisisisOsOsOsisisisisisO}', I must change it…

    AlexeyT, Sven Barth
    1
  23. FPC RGB+W LEDs

    I'm thinking about making a controller for SK6812 Individually addressable RGB+W Led strips, perhaps something I can run on a Raspberry Pi. I'm curious if anyone has…

    James Richters, Christo Crause, Jean SUZINEAU
    4
  24. Lazarus Release 2.0.6

    The Lazarus team is glad to announce the release of Lazarus 2.0.6. This release was built with FPC 3.0.4. The previous release Lazarus 2.0.4 was built with FPC 3.0.4 as…

    Mattias Gaertner
    0
  25. Incorrect IDE Messages error line

    Compile Project, Mode: linux x64 qt5, Target: builds/linux-x64-qt5/cudatext: Exit code 1, Errors: 3 Error: /home/user/lazarus/lcl/units/x86_64-linux/qt5/qtwidgets.o: In…

    Alexey Tor., Jonas Maebe
    1