Sign in Join

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

Mailing lists / fpc-pascal

fpc-pascal · 2017-02

  1. FreePascal Windows - Force files to write to disk

    I have a freepascal Windows console application that I recently ported over from DOS Turbo Pascal. I am have a small settings file that I write to disk that keeps…

    James Richters, Giuliano Colla, Henry Vermaak
    41
  2. https how does it work

    How does httpy work, what is needed? TLS/SSL library? A http webserver without encryption I programed already on my own and wanted to integrate https. Is there any…

    Rainer Stratmann, Bo Berglund, Michael Van Canneyt
    4
  3. Feature announcement: Management Operators

    I'm pleased to finally announce (again but now officially ;) ) the additional record operators: Initialize, Finalize, AddRef and Copy. Available in latest FPC trunk…

    Maciej Izak, Benito van der Zander, denisgolovan
    14
  4. FPC 3.0.2 released!

    Finally, FPC 3.0.2 has landed. FPC 3.0.2 is an update to 3.0.0 that contains some compiler bugfixes and library progress since 3.0.0 Building is still in progress and…

    Marco van de Voort, Bo Berglund, fredvs
    9
  5. MSEide+MSEgui 4.4 for Free Pascal 3.0.2

    MSEide+MSEgui 4.4 for Free Pascal 3.0.2 has been released: https://sourceforge.net/projects/mseide-msegui/ There are also new versions of the ARM (Raspberry Pi) cross…

    Martin Schreiber, code dz, fredvs
    6
  6. TProcess usage and reading program output

    Can anybody see if there is something wrong with the code shown below. The code is copied from one of my earlier projects where I call the FPC compiler and it worked…

    Graeme Geldenhuys, Benito van der Zander, Michael Van Canneyt
    7
  7. parser combinator library

    Eight years ago someone asked whether there is a parser combinator library for free pascal, nothing like that existed at that time and also does not seem to exist up to…

    Bernd, Unknown author
    1
  8. lldb problems with Xcode 8.2.1

    I am experiencing some LLDB problems in macOS Sierra 10.12.3 with Xcode 8.2.1. Its running the LLVM compiler with FPC 2.6.4. I can no longer get breakpoints to…

    Jeremy Thompson, Jonas Maebe, Matthew Drayton
    3
  9. pyacc and using hexadecimals in the code

    I would like to use hexadecimal values in a pyacc script. However, when doing so pyacc thinks I am using a rule assign (or whatever the correct term is) eg $$ := $1 as…

    Darius Blaszyk
    0
  10. Typecast class-of to class

    FPC allows to type cast a class-of variable to a class instance. Is this a bug or a feature? var c: TClass; begin TObject(c).ClassName; // crash end. Mattias

    Mattias Gaertner, Jonas Maebe, Marco van de Voort
    2
  11. Castle Game Engine 6.0 released

    We're proud to release Castle Game Engine 6.0, an open-source 3D and 2D game engine for Object Pascal. This release is a culmination of more than a year of intensive…

    Michalis Kamburelis
    0
  12. Writeln in threads

    Is writeln thread safe? I’m getting some strange crashes and I’m curious if they’re related to calling writeln on multiple threads. Ryan Joseph

    Ryan Joseph, fredvs, Jonas Maebe
    2
  13. GetEnv and large strings.

    I am using Free Pascal Compiler version 2.6.2-8 [2014/01/22] for x86_64 Copyright (c) 1993-2012 by Florian Klaempfl and others Target OS: Linux for x86-64 I created a…

    duilio foschi, Jonas Maebe
    1
  14. uses myunit in '../src/myunit.pas' ?

    Hello. There is myprogram.pas in /home/me/myproject/example. This program uses myunit.pas from /home/me/myproject/src. myunit.pas uses myunit2.pas and myunit3.pas that…

    fredvs, Fred van Stappen, Graeme Geldenhuys
    45
  15. TProcess interacting with Octave 4.2 on Win32

    I am having trouble reading/writing to Octave through a TProcess on Win32. Full source and primitive demo here:…

    Travis Ayres
    0
  16. Overriding generic methods

    Is overriding methods from specialized generic classes supported in any way? I tried the following below but it doesn’t seem to work. type generic TList<T> = class…

    Ryan Joseph, Marco van de Voort
    2
  17. KeyDown routine and Ctrl+Q

    I use a KEYDOWN routine in my main TFORM to check for the key Ctrl+Q: ----------------------------------------------------------------- procedure…

    Jürgen Hestermann, Bart, Mark Morgan Lloyd
    6
  18. FPC 3.0.X next to 2.6.4 on Linux

    I have installed FPC 2.6.4 for a long time on my Linux with install.sh script in /usr dirs. I would like to install FPC 3.0.0 but keep 2.6.4 as "default" version due to…

    Krzysztof, Fabio Luis Girardi, Jonas Maebe
    9
  19. TJSONData.FindPath() troubles where data contains dots.

    I've studied the following documenation to make sure I'm using FindPath() correctly. http://www.freepascal.org/docs-html/3.0.0/fcl/fpjson/tjsondata.findpath.html Now, I…

    Graeme Geldenhuys, Michael Van Canneyt
    4
  20. class property accessor static

    The getter/setter of a class-property must be "static" (Delphi compatible). If I understand "static" correctly, then "static" simply omits passing the class as…

    Mattias Gaertner, Graeme Geldenhuys, Luiz Americo Pereira Camara
    17
  21. fphttpserver and streaming ?

    Hello. Is it possible to do a web-streaming-server with fphttpserver ? If yes, are there examples ? If no, what are the steps to realize it? In a loop, a buffer of float…

    Fred van Stappen
    0
  22. Parameterless constructors are not allowed in records or record/type helpers

    Why is this restriction in place and what are the alternatives if any? Some times I want to just provide a method that sets default values for a record without any…

    Ryan Joseph, Maciej Izak, Sven Barth
    9
  23. Any use notes for javapp

    So does anyone have any hints, tips, use notes, instructions, ... for how to use the "javapp" tool? - Jon Jon Foster JF Possibilities, Inc.

    Jon Foster, Jonas Maebe
    2
  24. IsValidIdent() and identifiers escaped with &

    Consider this program, which returns False: program Project1; uses sysutils; var &begin: boolean; begin &begin:=IsValidIdent('&begin'); WriteLn('IsValidIdent(''&begin'')…

    Howard Page-Clark, Jürgen Hestermann, Mattias Gaertner
    5
  25. A jit tool for command line compilation of Pascal?

    Several years ago I seem to remember using a FPC tool that allowed me to write Pascal code and have its source file loaded, compiled and executed at the command line. If…

    Stuart Cox, Dmitry Boyarintsev
    2
  26. for loop vs while loop

    Just curious (been in a discussion with somebody else). Is there a performance difference between a FOR loop and a WHILE loop? Not sure if it will make a difference, but…

    Graeme Geldenhuys, DaWorm, Jürgen Hestermann
    7
  27. fpc and voip ?

    Hello. I have lot of success to play mp3 files with library mpg123+portaudio and fpc unit fphttpclient.pas. Andrew Haines did a perfect work with his TThreadHttpGetter…

    fredvs, José Mejuto, Leonardo M. Ramé
    20
  28. How to use pipes ?

    Hello. I have done lot of search on internet about pipes without success. Even for Delphi. no demo nor explanation. The same in fpc wki page. For example, how to use…

    fredvs, Andrew Haines, José Mejuto
    9
  29. question about fphttpclient

    I use with great success (and pleasure!) the unit fphttpclient under winxp, mageia and raspbian with some code like WITH TFPHTTPCLIENT.CREATE(NIL) DO BEGIN REP:=GET(REQ);

    Ched, Michael Van Canneyt
    1
  30. destructor

    fpc allows to declare a method with the destructor keyword, that is not a real destructor, because it does not free the memory. For what is this feature good for? For…

    Mattias Gaertner, Maciej Izak, Nitorami
    3