Sign in Join

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

Mailing lists

fpc-pascal

Subscribe to this list Your subscription

All words must match. Use "exact phrase", -word, -"phrase", from:name, from:"first last", list:fpc-devel, year:2011, before:2012-03, after:2010, in:subject.

Latest threads

  1. SpVoice.GetVoices returned exception class EOleSysError

    The project has generated an exception class EOleSysError with a message: ???? ?????? ?? ??????. uses ...,ComObj; var SpVoice: Variant; SpVoice :=…

    misabov, Andrew Haines, fredvs
    8
  2. Constants in generics

    I wanted to make a record generic that would serve as wrapper for an array allocated on the stack. Is there anyway to make constants work in generics? The generic type…

    Ryan Joseph, Maciej Izak, Sven Barth
    6
  3. sqldb create/free lifetime of object

    The sql query object and transaction object are created but not freed: http://www.freepascal.org/docs-html/fcl/sqldb/usingsqldb.html I think the docs should mention that…

    Lars, LacaK, Michael Van Canneyt
    7
  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. Good FFT example anywhere?

    I am looking for some good example of FFT functions in pascal but it seems like what Google serves up is rather old and refers to Turbo-pascal and the like... So maybe…

    Bo Berglund, Adriaan van Os, Ched
    17
  7. Platform Dependent Integer Types

    Which integer types have their size dependent on platform? E.g. in Delphi, LongInt can 32 or 64 bits depending on the platform. The documentation says "every platform…

    African Wild Dog, Florian Klämpfl, Marco van de Voort
    12
  8. Out of scope method?

    Does it exist now or has it ever been discussed that a method in TObject could be called when an instance of an object goes out of scope? It’s common to clean up…

    Ryan Joseph, Marco van de Voort, Marcos Douglas B. Santos
    21
  9. Re: Bug in documentation for Random?

    I've never used negative values, so this is just a guess: random(+10) will output numbres 0..9 random(-10) will output numbres -9..0 so, it is equivalent to -random(10)…

    Santiago A., Bart, Ched
    7
  10. mirror freepascal.stack.nl down

    One of the FPC mirrors "freepascal.stack.nl" is currently being migrated to a new vm. I hope access will be restored within hours.

    Marco van de Voort
    0
  11. Setting record values

    I’ve been using a design pattern in my code which I think is probably pretty stupid so I’d like to make sure. Assume I have a type like TPoint below and I want to…

    Ryan Joseph, Sven Barth
    5
  12. 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
  13. parameter list declaration

    I'm looking for official reference for function/procedure parameter list declaration in Pascal. I found this: http://www.freepascal.org/docs-html/ref/refse91.html but…

    Mr Bee, leledumbo, Michael Van Canneyt
    2
  14. 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
  15. 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
  16. 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
  17. 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
  18. 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
  19. 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
  20. 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
  21. 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
  22. 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
  23. 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
  24. 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
  25. 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
  26. 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
  27. 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
  28. 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
  29. 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
  30. 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

Browse by month

2026
2025
2024
2023
2022
2021
2020
2019
2018
2017
2016
2015
2014
2013
2012
2011
2010
2009
2008
2007
2006
2005
2004
2003
2002
2001
2000
1999