Sign in Join

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

Mailing lists / fpc-pascal

fpc-pascal · 2016-05

  1. Using paszlib from fpc 3.0 with fpc and delphi 2007?

    I have a project that is targeting both Linux (on Raspberry Pi) and Windows. It started in Delphi 2007 and is a command line utility. It needs to use some zip…

    Bo Berglund, Graeme Geldenhuys, Marco van de Voort
    10
  2. Questions regarding FPImage's TFPMemoryImage.FData variable

    The internal FData field variable of TFPMemoryImage is of type FPFItegerArray and is defined as follows: TFPIntegerArray = array [0..(maxint-1) div sizeof(integer)-1] of…

    Graeme Geldenhuys, Mattias Gaertner, Michael Van Canneyt
    8
  3. Best way / tool to create resource files (*.res) for fpc projects

    For Lazarus projects, the IDE comes with an integrated resource editor that uses fcl-res to create the resource file In my case, i want to create a standalone resource…

    Luiz Americo Pereira Camara, Michael Van Canneyt
    1
  4. How to declare function with untyped array parameter

    is there way how to declare function, which will accept as parameter any array type ? (this parameter I need forward to System.Length() only ) Just like Length()…

    LacaK, Marco van de Voort, Sven Barth
    7
  5. Assigning Interface method to event handler

    Can I safely assign a method from an Interface reference to an event handler. The code below works, but I'm not sure if it is safe to do so, and allowed.…

    Graeme Geldenhuys, Jonas Maebe, Michael Van Canneyt
    9
  6. CustApp.pp missing semi-colons

    RE: http://mantis.freepascal.org/view.php?id=30114 I was told to discuss this here. Not really sure what to discuss. The code style of custapp.pp uses semi-colons all…

    Graeme Geldenhuys, Michael Van Canneyt
    1
  7. Using Free Pascal Scanner/Parser in Other Projects

    Currently, is feasible/possible to use the free pascal's scanner/parser portions in other projects that needs to perform pascal lexical analysis? (e.g syntax coloring…

    Mazo Winst, Michael Van Canneyt
    1
  8. Inline methods

    is it possible inline also methods of objects (not regular procedures) ? I have very simple class method, which call I need inline. (looking at assembler code it is not…

    LacaK, Jonas Maebe, Marco van de Voort
    20
  9. Parser Generator

    Hi. I am currently looking into integrating a custom language parser into my program and have been searching the web for parser generators that can create Pascal code…

    Torsten Bonde Christiansen, Carlo Kok, leledumbo
    9
  10. Maximum of memory which can be used by single program in 32 bit Windows

    another question: is there any limit in FPC, which causes that only cca 1GB of memory can be used by FPC ? I have program, which reads big XML file (cca 500MB) using…

    LacaK, Graeme Geldenhuys, Jonas Maebe
    22
  11. PChars and AnsiString Code Pages

    I've been looking at some old code which still seems to work in fpc 3.0.0 - but is it safe? The code looks like: {$mode delphi} var Buf: PChar; s: string; begin Buf :=…

    Tony Whyman, Jonas Maebe
    3
  12. Does FPC 2.6.4 or later have an Ascii85 (Base85) implementation

    Ascii85 - also known as Base85. It works similar to Base64, but where Base64 increases the original data by 33% (four ASCII characters to represent 3 bytes of data),…

    Graeme Geldenhuys
    1
  13. JSON register new data types for custom output/input

    Is it possible (or on some wish list) to register new data types with fpjson so it can understand and generate custom output, and understand reading back that custom…

    Graeme Geldenhuys, Michael Van Canneyt
    4
  14. pretty print json output

    Does fpjson support an option to “pretty print” (neatly indent) generated JSON output? Graeme

    Graeme Geldenhuys, Michael Van Canneyt
    2
  15. What to use when porting WaitForMultipleObjects to Linux?

    When porting a Delphi console program on Windows to FreePascal on Linux, what can one do with API calls like WaitForMultipleObjects, which is used to synchronize…

    Bo Berglund, Dmitry Boyarintsev, Jonas Maebe
    4
  16. fpc/lazarus and kinect sample

    Hi! I got an xbox 360 kinect, which I'd like to use for controlling a drone (Crazyflie 2). https://www.youtube.com/watch?v=UzFwg2Fpv4E The drone software is all in a…

    Björn Lundin, Michael Van Canneyt, Unknown author
    5
  17. Smart Pointers

    I don't know if here is the correct place to make this question. I read that mails about implementation of management operators and smart pointers. 1 - These features…

    Mazo Winst, Anthony Walter, Florian Klaempfl
    34
  18. passing "array of const" into cdecl procvar

    I'm having a little trouble figuring out how to do the following: I have a procedural type defined as such: =========================== type Tjson_pack = function( fmt :…

    Seth Grover, Maciej Izak, Sven Barth
    4
  19. TJSONboolean and locale settings

    Is TJSONboolean, and it’s internal BoolToStr(AValue, True) and StrToBool() calls, affected by locale settings? For example: My locale is en_GB and I store a Boolean…

    Graeme Geldenhuys, Dmitry Boyarintsev, Michael Van Canneyt
    4
  20. FCL licensing choice

    Is it a requirement that all FCL code be LGPL licensed? I’ve randomly picked about 8 or so directories and all the code I reviewed was LGPL 2.1 licensed. Can code be…

    Graeme Geldenhuys, Jonas Maebe
    2
  21. code example where AnsiString used in FCL (SqlDB) causes data loss

    Here is an example [proof if you will] of the problem. I wrote a small test program that reads data from a Firebird database where the database and field charset is set…

    Graeme Geldenhuys, Andreas Dorn, Jonas Maebe
    30
  22. Summary of Unicode Strings Debate

    A summary of what i learned from the Unicode String debate: 1 - FPC 3 introduces code page aware strings 2 - FPC 3 updates the RTL to provide a better support for code…

    Mazo Winst, Jonas Maebe, Michael Van Canneyt
    3
  23. Warning not to use the "String" type with FPC 3.x

    I really think the FPC team should make it blatantly clear that the usage of the aliased "String" type should not be used any more with FPC 3.x. It turn I think major…

    Graeme Geldenhuys, Jonas Maebe, Marco van de Voort
    58
  24. RTL and Unicode Strings

    I am very confused about the way the system codepage are determined. platform dependent manner. Suppose that my app needs to read a file encoded with UTF-8. Suppose that…

    Mazo Winst, Graeme Geldenhuys, Jonas Maebe
    12
  25. Invoking methods through rtti

    Is there any way to invoke a method passing parameters through rtti? Best regards

    Mazo Winst, Graeme Geldenhuys, Michael Schnell
    7
  26. String theory

    While my first thought over the "String Type" or "End of World" threads was this is another "how many angels to the pinhead" type discussion. However, having worked…

    Tony Whyman, Bart, Jonas Maebe
    4
  27. {$H+} meaning with compiler {$mode DELPHIUNICODE}

    This weekend I tried to unify tiOPF's Delphi and FPC code. Year back tiOPF branched to support D2009 only and do loads of code clean-up. FPC couldn't follow that branch…

    Graeme Geldenhuys, Jonas Maebe
    3
  28. TMaskUtils.ValidateInput function: how is it supposed to behave?

    I cannot find any documentation about TMaskUtils.ValidateInput function (unit MaskUtils). AFAICS Delphi does not have such a class? (ref:…

    Bart, Graeme Geldenhuys, Luiz Americo Pereira Camara
    12
  29. Updating wiki translations in español (es)

    Please send me any correction or error detected es: Cualquier error que encuentren envienme un mail y sera corregido cuanto antes. http://wiki.freepascal.org/Function/es…

    H. Gabriel Máculus
    0
  30. Any unit tests for the FastHTMLParser unit in FCL - chm package?

    As the subject line says, are there any existing unit tests for the FastHTMLParser unit found in the “chm” package of the FCL? My initial search in FCL suggests that…

    Graeme Geldenhuys
    0
  31. TThread and WaitFor

    is this safe: FThread.Terminate; // what if here is switched FThread to execution and will immediately end his Execute procedure FThread.WaitFor; // what happens if…

    LacaK, Sven Barth
    1
  32. test - ignore

    test - ignore

    Jerry
    0
  33. hello world

    Folks: Apologies for the beginner nature of this query... why won't this compile? It is the only open file and is saved, looks like a main program to me. program Hello;…

    M Pulis, Graeme Geldenhuys, Mark Morgan Lloyd
    5
  34. FPC Text IDE and Alt+F3 shortcut not working

    Under FreeBSD & Linux using Mate Terminal (and xterm)... If I press the Alt+F3 shortcut which should close the current active window, it opens the Options Menu instead.…

    Graeme Geldenhuys
    0
  35. getopts unit vs CustApp parameter handling

    Is the getopts unit deprecated or not recommended for usage? The reason I ask is because I see CustApp has similar functionality to the getopts unit, but the custapp has…

    Graeme Geldenhuys, Michael Van Canneyt
    5
  36. FCL: moving FastHTMLParser

    Is there any chance of moving “packages/chm/src/fasthtmlparser.pas” to a more publicly accessible location inside the FCL? eg: fcl-base? That way other FCL packages…

    Graeme Geldenhuys, Dmitry Boyarintsev, leledumbo
    3
  37. intel vs att asm (fstp instruction) (osx/clang features)

    I'm dealing with the following code (from ZenGL library), targeting OSX --------------- {$mode delphi} procedure m_SinCos( Angle : Single; out s, c : Single ); assembler;

    Dmitry Boyarintsev, Ched, Pierre Free Pascal
    3
  38. Property Attributes

    http://wiki.freepascal.org/Property_attributes. <http://wiki.freepascal.org/Property_attributes> 1 - Is there any plans to merge the branch which contains the…

    Mazo Winst, Michael Van Canneyt, Sven Barth
    2