Sign in Join

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

Mailing lists / fpc-pascal

fpc-pascal · 2020-05

  1. Ethernet Relays

    Does anyone have any advice on how to get started sending commands from FPC to use these ethernet relays: https://www.amazon.com/gp/product/B076CNJNFH Default IP…

    James Richters, Ched, Michael Van Canneyt
    17
  2. optimization for strlicomp()

    function strlicomp(str1,str2 : pwidechar;l : SizeInt) : SizeInt;   var    counter: sizeint;    c1, c2: char;   begin     counter := 0;     if l=0 then…

    Alexey Tor., Benito van der Zander, Jonas Maebe
    4
  3. Implementing a simple tcp/ip connection

    I needed to implement a simple dedicated TCP/IP connection between a client and a server. Nothing fancy, just sending and receiving short strings. I have used in the…

    Giuliano Colla, Graeme Geldenhuys, Marco van de Voort
    4
  4. get class of procedure variable

    In the example below "callback" is assigned to a method of "obj", but is it possible to get the class back from the variable? In the pseudo code I would expect .GetClass…

    Ryan Joseph, Michael Van Canneyt
    3
  5. TFPGList and objects

    Using objects in TFPGList is currently not possible because class operators are not supported in objects. I tried using global scope operators but they don't seem to…

    Ryan Joseph, Sven Barth, Vojtěch Čihák
    3
  6. Copying a Pchar to an array of bytes

    I'm not too familiar with Pchar, and apparently I'm missing something. I have a Pchar string which I must copy into an array of bytes. Could someone explain me while a…

    Giuliano Colla, Alexander Grotewohl, Bo Berglund
    4
  7. Delphi TService

    Does somebody have a compatible TService somewhere for dual compilation Delphi/Lazarus purposes? There is daemonapp, but that seems to be incompatible, but maybe it can…

    Marco van de Voort, Bo Berglund, Michael Van Canneyt
    2
  8. Zoned date/time conversions

    I need to do timezone enabled date/time conversions... Use case 1) We want the application server to always use UCT and the application server might not be in the sime…

    Graeme Geldenhuys, Michael Van Canneyt
    2
  9. How to implement a simple tcp/ip connection?

    I need to implement a simple dedicated TCP/IP connection between a client and a server. Nothing fancy, just sending and receiving short strings. I have used in the past…

    Giuliano Colla, Alexander Grotewohl, Bo Berglund
    16
  10. fpDebug extension for Visual Studio Code

    As I wrote before I'm working on a fpDebug-extension for Visual Studio Code, based on the DAB (Debug Adapter Protocol). This protocol is also used by other editors. I…

    Joost van der Sluis, Martin Frb, Ryan Joseph
    17
  11. Custom attributes

    Hi! FPC compiler has a define when custom attributes are present? Something like FPC_HAS_CONSTREF, to say when constref is available... Fabio Luis Girardi PascalSCADA…

    Fabio Luis Girardi, Jonas Maebe
    1
  12. Bug 37080 -- StrToHostAddr accepts all Pascal number notations

    While doing some work on bug 37060, the refactoring of StrToHostAddr and StrToHostAddr6 in the sockets unit,(https://bugs.freepascal.org/view.php?id=37060), I found that…

    Noel Duffy, Jonas Maebe, Joost van der Sluis
    11
  13. please where is fpc-3.2.0rc1.arm64-linux

    Please is there some precompiled Linux ARM64 Binary of fpc-3.2.0rc1? Because I can only find ARM not ARM64 Bit precompiled binary. May be, that compiler is stored on…

    Mgr. Janusz Chmiel, Sven Barth
    1
  14. Optimizing code generation fpc (lazarus)?

    Maybe a stupid question, but... I am struggling with porting a Windows service application written with D7/D2007 back in 2004-2006 or so. I need to get it moved to Linux…

    Bo Berglund, Jonas Maebe, Michael Van Canneyt
    3
  15. Return value of StrToHostAddr and StrToHostAddr6 in sockets unit

    While working with StrToHostAddr and StrToHostAddr6 over the past couple of weeks I've run into issues caused by the functions returning all zero addresses to indicate…

    Noel Duffy, Bart, Christo Crause
    20
  16. Different behaviour between FPC 2.6.4 and FPC 3.0.4

    Compiled with FPC 3.0.4 there is an access violation when executing procvar; Compiled with FPC 2.6.4 it works for a long time. Did I overlooked something? Mode: MObjFPC…

    Rainer Stratmann, Alexander Grotewohl, Bart
    11
  17. Code tools and changing include file text

    When a file changes I get the full source text and update the version in code tools by doing this: Code := CodeToolBoss.FindFile(Path); Code.Source := text; This works…

    Ryan Joseph, Mattias Gaertner
    1
  18. Code tools search paths

    I found out that setting TCodeToolsOptions.FPCOptions (-Fu and -Fi) was doing something because it helped FindDeclaration to search for units not in the same same…

    Ryan Joseph, Mattias Gaertner
    9
  19. Bugs in StrToHostAddr6 in sockets unit

    Using fpc 3.0.4 on Fedora 30. I've just started using the StrToHostAddr6 function in the sockets unit to parse IPv6 addresses. I've found a couple of issues with it. 1.…

    Noel Duffy, Christo Crause, Karoly Balogh (Charlie/SGR
    14
  20. Compiler mode for code in rtl and rtl-extra

    I've been beavering away at a fix for https://bugs.freepascal.org/view.php?id=37013 and I've run into something unexpected. When I try to build rtl-extra with my proposed

    Noel Duffy, Bart, Michael Van Canneyt
    3
  21. Using include files in code tools

    When using code tools I've found that it needs to start from a main unit (otherwise other relevant macros may not be set) and then insert includes into the source text.…

    Ryan Joseph, Mattias Gaertner
    8
  22. BSON formatter

    Working on the language server it's become clear that JSON is going to be a killer bottleneck, but that's what Microsoft decided to use. It's almost a deal breaker just…

    Ryan Joseph, Andreas Schneider, Michael Van Canneyt
    7
  23. FPCMake and Makefile.fpc question

    Here's the first line of the Lazarus Makefile: ----------------------------------------- # # Don't edit, this file is generated by FPCMake Version 2.0.0 # default: all…

    Bart, Michael Van Canneyt, Sven Barth
    3
  24. Raspberry Pi3B - often EBusError: Bus error or misaligned data access

    With the 3.2.0-RC1 on a Raspberry PiB running raspbian, most of my software which ran very well when compiled with fpc 3.0.4 do stop with the error in title when or near…

    Il Grande Beppe, Pierre Muller
    1
  25. Code tools and constants in generics

    As to be expected with new feature code tools now fails with constants in generics. Should I make a bug report to fix this? Ryan Joseph

    Ryan Joseph, Michael Van Canneyt
    2
  26. Name collisions in scoped enums

    I've been using scoped enums and noticed that I'm getting collisions with reserved keywords. Shouldn't these be allowed in scoped enums since they are required to be…

    Ryan Joseph, Bjarne Bäckström, Michael Van Canneyt
    10
  27. Code tools unrelated completions

    Code tools completions are returning functions that don't appear related to the current unit such as "fpc_Copy" from /usr/local/share/fpcsrc/rtl/inc/compproc.inc. Here's…

    Ryan Joseph, Mattias Gaertner, Michael Van Canneyt
    5
  28. FPC development guiding.

    Hi Free Pascal team. I'm a long term FPC user and ethusiast of Pascal language and it is my preferred language. In my working day I'm used to coding with C/C++ or even…

    Unknown author, PopolonY2K, Ryan Joseph
    3
  29. Empty Set in constants in generics

    Should generics accept empty sets as constants? I think they should and this is a bug but I wanted to ask first. ======================== {$mode objfpc} program test;…

    Ryan Joseph, Sven Barth
    2
  30. Concat TCollection?

    I have many TCollection's that I need to concat together into one larger collection for streaming. Since it's just a list I thought I could add the elements together but…

    Ryan Joseph, Michael Van Canneyt
    3
  31. Vector code

    Can someone recommend a good book on writing (assembly) vector code ? Adriaan van Os

    Adriaan van Os, Joao Schuler, Marco van de Voort
    5
  32. TFPGMap retrieving values

    I've been starting to use the RTL so I'm not very familiar with it but I thought TFPGMap was supposed to be a hash table for fast lookup, so why does TFPSMap.Find using…

    Ryan Joseph, Marco van de Voort, Sven Barth
    6
  33. Pascal Language Server

    I am new to Pascal programming and since I like using Emacs, I wanted to try to improve its support for editing Pascal code. I decided to implement an LSP server which…

    Arjan Adriaanse, Christo Crause, Joost van der Sluis
    131
  34. Question about compiling FPC trunk after revision 44849

    For years I have been using the same script to compile FPC, in this script I use the next command: make -j 9 clean all install After the revision 44849 the use of the…

    Victor Campillo, Florian Klämpfl, Jonas Maebe
    5