Sign in Join

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

Mailing lists / fpc-pascal

fpc-pascal · 2017-04

  1. fpc code for Java class and Android.

    Hello. Here a easy way to translate all your fpc applications into Java applications (class). The trick is to convert your fpc applications into native java libraries.…

    fredvs, Graeme Geldenhuys, Jon Foster
    28
  2. 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
  3. Record operator for assignment

    Instead of making constructors and doing busy work It would be nice if Free Pascal could let you assign records outside of type blocks like: rec := (x: 0; y: 0; z: 0);…

    Ryan Joseph, Jürgen Hestermann, LacaK
    17
  4. Freevision etc.

    I've not used Freevision/Turbovision before, but am experimenting with James Clarke's DialEdit as an experiment to see whether I can create a fallback user interface for…

    Mark Morgan Lloyd, Graeme Geldenhuys, Michael Van Canneyt
    9
  5. Is there some disadvantages using mode Delphi?

    I would like to write some packages that should work in FPC and Delphi. I know that I will need to use {mode delphi} to do that. My ask is: Is there some disadvantages…

    Marcos Douglas B. Santos, Graeme Geldenhuys, Marco van de Voort
    10
  6. Cross compile linux->solaris?

    Thought it would be fun to test a little cgi web programming. The server tha hosts my website returns this (on unam -a): SunOS aklathep 5.10 Generic_150401-49 i86pc i386…

    Bart, Mark Morgan Lloyd
    1
  7. Correct syntax for initialized constants/variables

    I try to include some initialized constants/variables in an application of mine, but somehow stumbled upon a stupid little problem that I can't figure out myself after…

    Ralf Quint, Ewald, Giuliano Colla
    4
  8. 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
  9. Can class function used in specialized class use intristic functions Low, High with generic type ?

    I have some generic class: generic T2DNumericArray<T> = object(specialize T2DArray<T>) public class function Truncate(Value: double): T; inline; ... In class function…

    LacaK, Cyrax, Sven Barth
    4
  10. 32-bit random numbers

    Am I correct in interpreting the documentation as implying that if I want to get a full-range 32-bit unsigned random number I have to use something like…

    Mark Morgan Lloyd, Peter
    2
  11. Use a procedural type for declare a procedure\function

    Why can't use procedural type for declare a procedure\function? Why ever allow the exact same signature? It's uncomfortable Maybe it makes sense to introduce into the…

    Andrey M, Zubarev, Andrey M, Zubarev
    2
  12. Coroutines and VirtualAlloc

    I was curious about possible ways coroutines could work in FPC and found this example that claims to implement just that. It appears to be designed for Windows though…

    Ryan Joseph, Bernd Mueller, Daniel Gaspary
    28
  13. AArch64 / Linux

    me again trying new platforms :=) I now have two machines running Linux on 64-bit ARM. So I wonder, what's the best way to get FPC 3.0.2 running natively on AArch64 and…

    Tobias Giesen, Jonas Maebe
    2
  14. GUI multithreaded Win32 program sometimes freeze when quitting

    I have an win32 multithreaded program written in lazarus 1.7, FPC 3.1.1 From time to time, when it quits, it will freezes and from the task manager, the program will…

    Dennis, Henry Vermaak, Mark Morgan Lloyd
    2
  15. Get value of PPChar ?

    Hello. A C method is defined like this: MPG123_EXPORT int mpg123_icy(mpg123_handle *mh, char **icy_meta); and translated in Pascal with this: function mpg123_icy(mh:…

    fredvs, Andrew Haines, Bart
    15
  16. Array clearing

    As far as the compiler is concerned what’s the difference between clearing an array using a for-loop vs. FillChar? It seems like iterating the array would be slower…

    Ryan Joseph, Benito van der Zander, Howard Page-Clark
    64
  17. 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
  18. 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
  19. 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
  20. 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
  21. 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
  22. 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
  23. 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
  24. 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
  25. 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
  26. 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
  27. 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
  28. 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
  29. 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
  30. 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