Sign in Join

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

Mailing lists / fpc-pascal

fpc-pascal · 2020-12

  1. GetClipboardFormatName causing an Error 216

    I'm trying to write a programs to get data from the windows clipboard that was put into it with Notepad++ using vertical editing. It uses a non-standard format and I'm…

    James Richters, Alexander Grotewohl, Jean SUZINEAU
    14
  2. Operators for a class

    I try to convert some C++ source to FPC, see below a short example from it. How can I define same operator with FPC trunk? class Cla { INT64 Num; public: Cla operator…

    Gabor Boros, Sven Barth
    1
  3. Two versions of freemem() - are they equal

    Do both these method yield the same result, or is one better (performance, safer?) that the other? procedure FreeMem(p:pointer;Size:ptruint); procedure…

    Graeme Geldenhuys, Alexander Grotewohl, Marco van de Voort
    2
  4. Reading Serial Hex Data

    I'm trying to figure out how to read a packet of HEX Bytes of an unknown length that have no specific termination character over a serial port as efficiently as…

    James Richters, Bo Berglund, Jean SUZINEAU
    10
  5. CP_NONE string disappearing

    this code: program Project1; {$mode objfpc}{$H+} var a,b, c: string; begin   a := 'x';   b := 'y';   SetCodePage(RawByteString(b), CP_NONE, false);   c := a+b;  …

    Benito van der Zander, Jonas Maebe
    1
  6. TCustomStream still using LongInt and not Int64

    Is this a bug in FPC 3.2.0 where TCustomStream still uses LongInt in the Read() method, where all other methods in in the class uses Int64 type? Here is the FPC code:…

    Graeme Geldenhuys, Michael Van Canneyt
    2
  7. Documentation bug - Language Ref - Ordinal types

    According to this HTML page: https://freepascal.org/docs-html/ref/refsu4.html The data types Byte, Word and Cardinal (LongWord) has the following ranges: 128..255 Byte…

    Graeme Geldenhuys
    1
  8. heaptrc unit troubles with New() & Dispose() calls

    Are there any known issues with heaptrc unit via compiler parameters -gl -gh, when using New() and Dispose() to manually allocate and free memory. I helped someone debug…

    Graeme Geldenhuys, Jonas Maebe
    2
  9. TurboVision is reborn as FOSS (again)

    https://github.com/magiblot/tvision Someone enterprising could make a TurboPascal clone out of FPC. :-) Liam Proven – Profile: https://about.me/liamproven Email: –…

    Liam Proven, gabor, Graeme Geldenhuys
    30
  10. 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
  11. Selecting Records with a variable

    The best way to explain what I'm hoping to do is by example... Say I have this record: Type Axis_Record = Record X,Y,Z,A,B,C : Double; End; Var AxisValue :…

    James Richters, Jean SUZINEAU, Luca Olivetti
    14
  12. callback from c with varargs

    I'm trying to use a c library where I can define a logging plugin. The c prototype for the callback is void (*log)(void *logContext, UA_LogLevel level, UA_LogCategory…

    Luca Olivetti, Jonas Maebe, Tomas Hajny
    6
  13. Initialization of constant record member of pointer type

    is there a way how to initialize record member of pointer type (other than PChar) in the following example: type   TMyRec=record     a: PByte; // if I change PByte…

    LacaK, Ladislav Karrach, Luca Olivetti
    16
  14. Error compiling on AROS/m68k: 1980-0-0 is not a valid date specification

    I've trying FPC on an Vampire 4 SA machine with ApolloOS/AROS m68k. Whenever I try to compile a pascal program (simple "Hello World" style) the compiler stopps with an…

    Carsten Strotmann, Karoly Balogh (Charlie/SGR
    6
  15. An idea for a "pair" type

    Just for fun I wanted to see what people thought about a potential "pair" type added to the compiler. Dictionaries have proven themselves to be a fundamental type we use…

    Ryan Joseph, Sven Barth
    3
  16. netdb, TCP, and DNS queries

    Following up on the work I've being doing to add support for DNS queries over TCP to netdb and to add support for querying all of the standard resource types such as MX,…

    Noel Duffy, Michael Van Canneyt
    4
  17. Range Check runtime errors

    I was recently troubleshooting a program that got a range check error and had quite a time figuring it out... it gave me the line number that generated the error... but…

    James Richters, Bo Berglund, Winfried Bartnick
    4
  18. How to get the current translation of a resource string?

    Since I want to treat a specific exception that cannot be distinguished by the class alone but only by the class and message, I need to find the current translation of…

    Luca Olivetti, Mattias Gaertner, Michael Van Canneyt
    7