Sign in Join

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

Mailing lists / fpc-pascal

fpc-pascal · 2017-07

  1. Free Pascal 3.0.4-rc1 released!

    We have placed the first release candidate of the Free Pascal Compiler version 3.0.4 on our ftp servers. You can help improve the upcoming 3.0.4 release by downloading…

    Marco van de Voort, Graeme Geldenhuys, Mattias Gaertner
    7
  2. Super Large Integer Math Calculations

    For integers beyond 64 bit, or even beyond 32 bit on a 64 bit machine, why can't the math be broken down into peices the way a human does it on paper, and then…

    Unknown author, Bart, Ingemar Ragnemalm
    10
  3. Best way to insert bytes into a TBytes variable?

    I am working on moving away from using AnsiString as communications buffer in an old application, so I need to write efficient replacements for certain string functions…

    Bo Berglund, Cyrax, Graeme Geldenhuys
    21
  4. Food for thought - language string improvement

    Ever had a problem like this? You have some SQL, say: SELECT Customers.CustomerName, Orders.OrderID FROM Customers FULL OUTER JOIN Orders ON Customers.CustomerID =…

    Graeme Geldenhuys, Andreas, Bernd Oppolzer
    46
  5. Const attributes

    The following code is compilable. I'm using a private const with type defined and I can change it in the constructor. 1. Is this by design? 2. Is there a way to declare…

    Marcos Douglas B. Santos, Felipe Monteiro de Carvalho, Howard Page-Clark
    9
  6. XML: Differences between Delphi and FPC

    FPC/Lazarus always tried stay compatible with Delphi... thus, why the FPC XML classes is so different than Delphi classes? Delphi XML is interface-based. There exists…

    Marcos Douglas B. Santos, Michael Van Canneyt, Sven Barth
    5
  7. BlockWrite of dynamic arrays

    I am converting older code to move from AnsiString to TBytes as non-text data container. While doing it I am using conditionals so I don't destroy the working code until…

    Bo Berglund, Sven Barth
    1
  8. TThread.Priority when ?

    Hello. When TThread.Priority will be implemented ? Why not give a compiler message that TThread.Priority is not yet implemented when using it ? Fre;D ----- Many thanks…

    fredvs, Michael Van Canneyt
    1
  9. My bug or rtl bug with TThread and TThreadList?

    Could someone please look at this small bit of code and tell me I have a bug or if there is something wrong with the RTL?…

    Anthony Walter, Mattias Gaertner
    3
  10. SVN RSS

    Is it possible that the SVN RSS is stuck at day 21 ? https://svn.freepascal.org/feeds/fpcsvn.rss

    José Mejuto, Andrew Haines, Michael Van Canneyt
    4
  11. Implementing AggPas with PtcGraph

    What is the best method for getting the memory image to a ptcgraph window? I have been trying to figure how to use something like putimage to do this but I'm not sure…

    James Richters, DaWorm, Graeme Geldenhuys
    102
  12. FPCUnit/DUnit: How abort all other tests?

    I'm using FPCUnit and DUnit to test code. I would like to know if there is a way to abort all other test and an specific one fail. I mean, if some "special tests" fail,…

    Marcos Douglas B. Santos, Graeme Geldenhuys, Michael Van Canneyt
    3
  13. New tool sspell for pascal programmers

    I've just finished working on a tool called sspell (stands for source code spell checker) for a project of mine. This tool extracts text from comments and string…

    Darius Blaszyk, Graeme Geldenhuys
    1
  14. OS/2 support and text colors

    Not strictly FPC related, but I know here are some OS/2 software developers around - and I have no idea where else to ask. I'm working on supporting OS/2 in fpGUI…

    Graeme Geldenhuys, Unknown author
    2
  15. Static local variables available?

    I am trying to clean up an existing application where handling of incoming serial data is done inside an event function OnRxData() of the serial component. I want to…

    Bo Berglund, Maciej Izak, Santiago A.
    7
  16. Compiler debug build

    Hi all Currently I am debugging a nasty shared memory bug. More specifically it's related to memory allocator, though not directly. More to the point - lack of…

    denisgolovan, Maciej Izak
    2
  17. Semaphores removed from the rtl?

    When and why were semaphores removed from the rtl?

    Anthony Walter, Benjamin Rosseaux, Karoly Balogh (Charlie/SGR
    9
  18. backtrace code in fpc

    Hello everyone, I am trying to port the code for backtrace, e.g., GetLineInfo(), to my freepascal kernel in order to print a backtrace when an exception happens. The…

    Matias Vara, Florian Klämpfl, Karoly Balogh (Charlie/SGR
    5
  19. Subclassing generic records?

    I’m trying to find a way to extend generic records since (as far as I know) there is no subclassing of records. I could use variant records here but these don’t work…

    Ryan Joseph, Martin Schreiber, Sven Barth
    6
  20. Sistema grande em CGI

    Bom dia pessoal ! Alguém aí já desenvolveu algum sistema grande em cgi ? (muitos acessos simultâneos, etc) Queria saber se ele dá conta, ou até onde se pode ir. Eu…

    Rogério Martins, Sven Barth
    2
  21. Class type to package name?

    Assuming the class type has been registered either through RegisterComponent or RegisterNoIcon, what is the most straight forward way to get the package name it is…

    Anthony Walter, Mattias Gaertner, Michael Van Canneyt
    4
  22. strutils (RTL) content missing from fp-docs in Debian package

    Since fpc version 3.0 (2.6.4 was OK) the Debian docs package has no content for strutils. Does anyone have any thoughts on what the cause might be? Peter B…

    Peter, Graeme Geldenhuys
    1
  23. TInterfacedObject destructor reentrance bug

    I have found a bug in the TInterfacedObject. Better than explaining is to examine and execute the code below. When executing the code below the destructor of the class…

    African Wild Dog, Michael Van Canneyt
    2
  24. C to Pascal conversion - Help request

    can someone please help me converting the folowing C types to Pascal? SF_CUE_POINT is simple, but I'm not sure how to convert SF_CUES_VAR(count) ad SF_CUES. Thank you in…

    Sandro Cumerlato, Dmitry Boyarintsev
    2
  25. Convert to int64 note

    I've been trying to get my programs to compile without any warnings or notes, but I keep getting this one: promill.pas(2137,42) Hint: Converting the operands to "Int64"…

    Unknown author, Ewald, Mattias Gaertner
    9
  26. FPDoc - how to document overloaded functions?

    How do you document overloaded functions? In this case I have overloaded functions that have different parameters (obviously), but also different result types. I've been…

    Graeme Geldenhuys, Michael Van Canneyt, Unknown author
    5
  27. Delete and Add for TBytes?

    I would like to replace a buffer handling scheme in an old application (written in Delphi) where the buffer was originally of type string and later when unicode appeared…

    Bo Berglund, Michael Schnell, Michael Van Canneyt
    4
  28. FPDoc - how to document a function result?

    As the subject line says. Do I simply create a ELEMENT take with the function name and ".Result"? For example: <element name="MyFunction.Result"> <short>This is the…

    Graeme Geldenhuys, Michael Van Canneyt
    1
  29. FileAge deprecated in Delphi, but not in FPC

    As past discussions showed, Free Pascal tries to be Delphi compatible regarding the RTL. I noticed that Delphi's FileAge() function [the one with a single parameter) has…

    Graeme Geldenhuys, Michael Van Canneyt
    1
  30. Fixed record files

    I have a few questions about fixed record files. I have the following: Type DrawCMD = Record GC: Byte; PX,PY,PZ,GX,GY,GZ,GI,GJ,R,SA,EA:Double; End; Var DrawFile …

    James Richters, Ched, Vojtěch Čihák
    4
  31. If vs case or something else?

    I'm trying to optimize a console application ported over from Turbo Pascal with a huge set of if then else statements like this: Var TXT : String; If TXT = 'Thing1' then…

    James Richters, Ched, Stefan V. Pantazi
    5
  32. for loops performance problems?

    I recall earlier this year some people in this mailing list were discussing surprising performance problems with fpc and for loops. I wanted to know if this is still an…

    Anthony Walter, fredvs, José Mejuto
    7
  33. Serial to TCP gateway in FPC?

    I need to implement a serial to TCP gateway in order to communicate between a Windows based control software and a system controller box. The software and the controller…

    Bo Berglund, Andreas, José Mejuto
    41