Sign in Join

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

Mailing lists / fpc-pascal

fpc-pascal · 2017-03

  1. Threading vs Parallelism ?

    Hello. Some developers treat me as dinosaur because I use threads in place of doing parallelism. Huh, ok, but why parallelism is better and how to do it with fpc ?…

    fredvs, Brian, Dimitrios Chr. Ioannidis
    42
  2. WebAssembly Target

    Is there something planned in this matter for FPC? I was reading about the new Firefox making WebAssembly publicly available ("On Tuesday Firefox 52 became the first…

    Daniel Gaspary, Benjamin Rosseaux, Graeme Geldenhuys
    60
  3. Hash List

    Ia there any hash list implementation in free Pascal? Ghashmap has no documentation. Is it stable for production use? Regards

    African Wild Dog, Giuliano Colla, Graeme Geldenhuys
    9
  4. TSQLQuery and buffering.

    Firstly, I realise this is an old subject, but I still can't find any easy answer. Really, the question is simple: Is there ANY way of TSQLQuery NOT reading the entire…

    Gary Doades, Jesus Reyes A., LacaK
    21
  5. Call function in shared library from multiple threads

    I'm wondering if shared libraries (on Linux) support call exported function from multiple threads. I made small demo. Threads send JSON PChar into shared lib function…

    Krzysztof, fredvs, Henry Vermaak
    15
  6. SPARC / Linux

    I noticed there is no binary FPC 3.0.2 Linux release for SPARC. Should it be possible to compile it for SPARC, possibly using the older binary 2.6.2 release? If yes, I…

    Unknown author, Graeme Geldenhuys, Mark Morgan Lloyd
    20
  7. String Constants and Source File Code Page (Cross-platform)

    What is the recomended way to deal with string constants in units which are shared in cross-platforms projects? For example, i started a project in Linux, where the…

    African Wild Dog, Jonas Maebe
    2
  8. Questions About Constructors

    1 - What happens if my constructor raise an exception? Is my destructor automatically called? 2 - Are the class fields automatically initialized to Default(T) just like…

    African Wild Dog, Mattias Gaertner, Michael Van Canneyt
    4
  9. Error on closing application when using a library.

    Hello. One of my application use libgcc_s_dw2-1.dll. Sadly, on Wndows 10 I've got "Runtime Error!", when closing the program. The dll is working but this appends if…

    fredvs
    1
  10. Something like TProcess.Environment for libraries ?

    Hello. If you are using a TProcess and your executable depends on libraries, there is TProcess.Environment to define the library path, example: AProcess.Environment.Text…

    fredvs, Jonas Maebe
    7
  11. Critical Section and Recursive Calls

    I'm writing a function protected by a critical section which can have recursive calls under certain conditions. Using the TCriticalSection class, after my thread…

    African Wild Dog, Mattias Gaertner
    1
  12. Delphi RTTI vs Free Pascal RTTI

    I need to write a code compatilble with both free pascal and delphi using the old style RTTI. What are the diferences between delphi's and free pascal's approach/types?…

    African Wild Dog, Graeme Geldenhuys, Karoly Balogh (Charlie/SGR
    5
  13. INVALID_SOCKET constant not defined for Linux

    I am porting application from Windows to Linux. I use Sockets unit. There is defined on Windows (and also on BeOS, FreeBSD, OS2): INVALID_SOCKET = TSocket(Not 0); // or…

    LacaK, Ched, Giuliano Colla
    6
  14. WideStringReplace bug?

    I am developing a console program which receives input in UTF-8, but it is converted to WideString for communication with COM. I found a weird behaviour of the…

    Lubos Pintes
    1
  15. Delphi for Linux is out

    Just thought I would mention, yesterday Delphi 10.2 was released which includes Linux support (I assume a cross-compiler). It is only available in the Enterprise edition…

    Graeme Geldenhuys, Florian Klämpfl, Giuliano Colla
    24
  16. TypeInfo question

    I have some generics which operate on multiple types and instead of making subclasses for certain types and overriding methods I wonder if using the RTTI like:…

    Ryan Joseph, Sven Barth
    4
  17. 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
  18. Threadvar member field

    I have a class where its instances are shared between multiple threads. How can I declare one variable per instance per thread? The code below does not compile (fpc…

    African Wild Dog, Karoly Balogh (Charlie/SGR, Michael Schnell
    6
  19. rtl-generics vs fgl

    Sorry if this is a silly question, I didn't really follow Generics discussions in the past. If the "rtl-generics" package a replacement for the fgl unit? Going forward…

    Graeme Geldenhuys, Florian Klämpfl, Marco van de Voort
    6
  20. Interface Inheritance Bug

    Test env: debian jessie amd64 - fpc 3.0.2 It seems free pascal have a bug when handling interface inheritance using generics. When i try to compile the unit bellow, i…

    African Wild Dog, Sven Barth
    5
  21. Generics Bug

    Please confirm this bug. The unit code bellow won't compile (fpc 3.0.2 - debian jessie amd64): "generics_bug.pas(17,48) Fatal: Syntax error, "," expected but "<" found"…

    African Wild Dog, Sven Barth
    4
  22. TThread.OnTerminate ?

    Hello. Does it exist a equivalent of the Delphi TThread.OnTerminate ? http://docs.embarcadero.com/products/rad_studio/delphiAndcpp2009/HelpUpdate2/EN/html/delphivclwin32/…

    fredvs, Bart, Michael Van Canneyt
    6
  23. Forward Generic Type Declaration Bug

    Please confirm if this is a bug. When I try to compile the unit below I get the error: "generics_bug.pas(14,43) Fatal: Internal error 2012101001" It seems the compiler…

    African Wild Dog, Bart, Sven Barth
    9
  24. Thread Variables Initial Values

    The documentation is not clear about the initial values of thread variables: *"If threads are used then a copy is made for each thread (including the main thread). Note…

    African Wild Dog, Michael Van Canneyt
    2
  25. 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
  26. Adding a array of float in ressource and use it ?

    Hello. Is it possible to add a array of float into ressource ? For example, there is myarray : array of cfloat. Is it possible to store that array myarray ressource and,…

    fredvs, Jonas Maebe, José Mejuto
    36
  27. Annual inform

    Annual inform: I am programming LibreN3D for 3D animations, and some other projects in FreeDOS and other systems, but these three past years they really were standing…

    Rafael Angel Campos Vargas, Unknown author
    1
  28. how to determine if a class has descendant registered within the current program

    I have a many classes, one inherits from another one, in an ancestor method, I want to test whether the calling class is a childless class. e.g. class function…

    Dennis, Graeme Geldenhuys, Michael Van Canneyt
    4
  29. Warning for anybody else using Linux Mint Debian ('Betsy')

    Upgrading to Lazarus 1.6.4 and FPC 3.0.2 as obtained from SourceForge breaks things irretrievably on Linux Mint Debian 64-bit running on an AMD Phenom x2 system. I first…

    brian, Mark Morgan Lloyd, Mattias Gaertner
    3
  30. Re: lldb problems with Xcode 8.2.1

    I have upgraded to FPC 3.0.2 and added in the Xcode 8.3 beta. I am able to see local variables when pausing the program. I am still unable to get breakpoints working. …

    Jeremy Thompson
    0
  31. Incomplete code example in FPC docs

    http://www.freepascal.org/docs-html/rtl/typinfo/ispublishedprop.html According to the above URL, that code example is not compilable as-is, because TMyTestObject is not…

    Graeme Geldenhuys
    0
  32. 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
  33. class operator in record

    How come: class operator Initialize(var aFoo: TFoo); class operator Finalize(var aFoo: TFoo); in a record are called class operator.. why not "record operator"? Are…

    Unknown author, Graeme Geldenhuys, Marco van de Voort
    5
  34. 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
  35. Manual sources? Some doc questions.

    I couldn't find the source for the manuals, e.g. [prog.pdf]( http://www.freepascal.org/docs.var). Does someone know where I can find them? Some other questions: - In…

    Hans-Peter Suter, Marco van de Voort, Michael Van Canneyt
    3
  36. 3.0.0 for 3.0.3

    Why do I need fpc 3.0.0 to build 3.0.3? Shouldn't that be 3.0.2? Mattias

    Mattias Gaertner, Marco van de Voort
    1
  37. $IFDEF with multiple symbols?

    Can I use this to make a conditional compilation? {$IFDEF charlie, oscar} {$ENDIF} Where I want main to be included if one or both of charlie and oscar are defined…

    Bo Berglund, Jonas Maebe
    1
  38. Array of const and generics

    Is it possible to use array of const inside of generics? Quick example I just typed up. If you specialize the generic the compiler always complains about the type in…

    Ryan Joseph, Sven Barth
    3
  39. Run Time Type Info - are the type names of all classes defined in a unit stored in the RTTI?

    Programmatically, I want to make a list of all Classes defined in the unit. Is this info stored in the RTTI or anywhere else? Thanks in advance. Dennis

    Dennis, Dennis Poon, Sven Barth
    3
  40. Lazarus Release 1.6.4

    The Lazarus team is glad to announce the release of Lazarus 1.6.4. This is a bugfix release. This release was built with FPC 3.0.2. The previous release Lazarus 1.6.2…

    Mattias Gaertner
    0
  41. 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