Sign in Join

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

Mailing lists / fpc-pascal

fpc-pascal · 2017-08

  1. Free Pascal 3.0.4-rc1 released!

    We have placed the first release candidate of the Free Pascal Compiler version 3.0.4 on our ftp servers. You can help improve the upcoming 3.0.4 release by downloading…

    Marco van de Voort, Graeme Geldenhuys, Mattias Gaertner
    7
  2. TP compatibility: procedural type

    Hello, all. According to Borland's official language guide to To be used as procedural values, procedures and functions must be declared with a 'far' directive or…

    Anton Shepelev, Karoly Balogh (Charlie/SGR, Marco van de Voort
    15
  3. Agg Pas Arcs

    I'm having an issue with drawing Arcs with AggPas, and I can't quite put my finger on it... What's happening is that small arc segments are just not being drawn...…

    James Richters, Graeme Geldenhuys
    8
  4. H2pas tool vs others, C header translation

    Forgive me, I have forgotten, this may have been discussed before.. Is h2pas the latest tool to convert C headers to pas files? Is there a competing tool that does more,…

    Unknown author, Dmitry Boyarintsev, el es
    39
  5. HTTPS with fphttpclient

    I'd like to make a request to a HTTPS address with TfpHTTPClient but am getting an unknown protocol error. I'm running fpc 2.6.4 on Rasbian 8 (Jessie) on a Pi 3. Here's…

    kristakis, Michael Van Canneyt
    1
  6. FPHTTPClient OpenSSL implementation

    For years I'm working with synapse (Ararat) with OpenSSL and there  is same openssl.pas lib. So problem is with: in InitSSLInterface:     if assigned(_RandScreen)…

    Pavol Stugel, Michael Van Canneyt
    2
  7. Freepascal Floating Point Issue

    I am having an issue with a simple floating point application. I am setting a variable to a specific value and immediately after I set it, it is not exactly what I set…

    James Richters, Benito van der Zander, Bernd Oppolzer
    37
  8. sending new parameters to existing instance

    I have a windows console application I wrote with Freepascal. I can send it a command line parameter for a file to use have it working so if I just double click on…

    James Richters, Luca Olivetti, Unknown author
    4
  9. ExtractRelativePath() not always returning expected result

    I’m trying to figure out ExtractRelativePath() and I’ve run the sample program found here: https://www.freepascal.org/docs-html/rtl/sysutils/extractrelativepath.html…

    James Richters, Michael Van Canneyt
    4
  10. Inline ASM code

    I need store result of floating point calculation (in my example arctan()) in memory pointed by some variable. See this code: var a: single; pa: PSingle; asm fild dy…

    LacaK, Karoly Balogh (Charlie/SGR, Sven Barth
    3
  11. Check In Interface Type Helpers

    I just wanted to point out that revision 37023 Sven added type helper support for interfaces. Good job and thank you Sven!

    Anthony Walter, Marcos Douglas B. Santos, Michael Van Canneyt
    21
  12. StringOfChar for Unicode/Widestring

    Do we have a StringOfChar function for UnicodeString/WideString in FreePascal? I could not find it in 3.0.4RC1 (which may tell you more about me that fpc). Bart

    Bart
    1
  13. fpReport released

    A long time wait. But it finally made it: fpreport has been committed to FPC SVN: packages/fcl-report. It should compile on windows, linux, freebsd and darwin. Features…

    Michael Van Canneyt, Graeme Geldenhuys, leledumbo
    3
  14. TStringHelper missing

    I’m trying to split a string by a delimiter and see there is a type helper called TStringHelper (https://www.freepascal.org/docs-html/rtl/sysutils/tstringhelper.html).…

    Ryan Joseph, Michael Van Canneyt, Sven Barth
    3
  15. Super Large Integer Math Calculations

    For integers beyond 64 bit, or even beyond 32 bit on a 64 bit machine, why can't the math be broken down into peices the way a human does it on paper, and then…

    Unknown author, Bart, Ingemar Ragnemalm
    10
  16. Serial communications: synaser vs FPC's serial unit

    If somebody with more experience (than me) with the Synaser and FPC serial.pp units could comment, that would be much appreciated. For a new cross-platform project where…

    Graeme Geldenhuys, Christo Crause, Fabio Luis Girardi
    10
  17. Defining sonames?

    MSEgui uses xlib by the units in packages/x11. The linker searches for libX11.so which is not installed on most systems by default so one has to install the libx11 devel…

    Martin Schreiber, Benito van der Zander, Fred van Stappen
    33
  18. Pascal support in the Kattis educational site

    A bit of news which I think has some interest here: "Kattis" (open.kattis.com) is a site where students can make programming exercises. This is quite important IMHO;…

    Ingemar Ragnemalm, Graeme Geldenhuys, James Richters
    3
  19. Proposed tidy-up of the FPC Manual section on Character Types and the FPC Wiki

    There has been some heated discussion on the Lazarus lists on the subject to character encodings etc. This has exposed several issues with the FPC Manual that I wanted…

    Tony Whyman, Graeme Geldenhuys, Mark Morgan Lloyd
    3
  20. homepage - no foundation link

    Maybe I'm going blind (considering the amount of screen time its very likely), but I don't see any link to the Free Pascal Foundation from the Free Pascal homepage?…

    Graeme Geldenhuys, Michael Van Canneyt
    1
  21. TStringList - Strange quotation mark handling

    With the attached example program and data.csv I got the next result: 0 * 84392 1 * asfds 2 * hytr 3 * 43421454 4 * O 5 * fdsfds 6 * 654645645 "O" fdsfsd 7 * hgfgfedw 8…

    Gabor Boros, Benito van der Zander, el es
    7
  22. Multi-OS fp.ini and fp.cfg ?

    Would it be not too hard to make fp.ini and fp.cfg containing sections dedicated to one OS (bot read by others, but kept untouched) ? I'm working on my source codes both…

    Ched, Unknown author
    1
  23. Using other fpc installation

    For debugging reasons I have installed fpc 2.6.4 on Debian so I can compile some old SVN revisions, number 32959 for example. I want to use the fp editor to run the…

    kapibara, Marco van de Voort, Tomas Hajny
    10
  24. Best way to insert bytes into a TBytes variable?

    I am working on moving away from using AnsiString as communications buffer in an old application, so I need to write efficient replacements for certain string functions…

    Bo Berglund, Cyrax, Graeme Geldenhuys
    21
  25. TInifile does not handle " " (space) as a value.

    Dear List. I was trying to use the ini file for our program to store a single space " " as a value, but this does not seem to be posible. From the Wikipedia definition…

    Torsten Bonde Christiansen, Graeme Geldenhuys, Michael Van Canneyt
    9
  26. TMemDataSet

    Does TMemDataSet support loading/saving blobs? Mattias

    Mattias Gaertner, Michael Van Canneyt
    1
  27. BlockWrite() version 2.6.4

    Can anyone familiar with FPC 2.6.4 comment on the specifics of how BlockWrite() functions under Linux. Specifically does BlockWrite() call the Linux kernel or call…

    Brian, Karoly Balogh (Charlie/SGR, Marco van de Voort
    6
  28. program crash when -Cfsse2 enabled

    Hi this is a portion of the program , when i add -Cfsse2 it crashes. but works ok without sse2 ////////////////////////////////////// program demo; {$ifdef FPC}{$mode…

    code dz
    0
  29. Food for thought - language string improvement

    Ever had a problem like this? You have some SQL, say: SELECT Customers.CustomerName, Orders.OrderID FROM Customers FULL OUTER JOIN Orders ON Customers.CustomerID =…

    Graeme Geldenhuys, Andreas, Bernd Oppolzer
    46
  30. FPC IDE generating Sig291

    I keep getting 'Program generated a signal 291. Save your sources and restart the IDE.' Errors with the FPC IDE. I'm using version 3.0.4RC1 on a Windows 10 x64…

    James Richters
    0
  31. Windows API SendMessage()

    I'm trying to use SenMessage() to turn the display on or off under program control of a console application. I got the function to work, and it turns off the display,…

    James Richters, Cyrax, Santiago A.
    4
  32. inline callback functions?

    I’m seeing feature this in other languages and it’s pretty useful. Has anyone ever considered this for Pascal? Instead of declaring a method in the class (or other…

    Ryan Joseph, Mattias Gaertner, Sven Barth
    3
  33. why the 0.5 in the Unix Epoch (for UnixToDateTime function)

    I just noticed that the definition of the constants have 0.5 in it. Why? from dateh.inc const JulianEpoch = TDateTime(-2415018.5); UnixEpoch = JulianEpoch +…

    Dennis, Dennis Poon, Mark Morgan Lloyd
    5
  34. Syncobjs Event and BlockWrite() question

    When using WaitFor() , ResetEvent and SetEvent as a semaphore , if a thread is using BlockWrite() and the execution of BlockWrite() is conditional on WaitFor() , will…

    Brian
    0
  35. Is it always safe to typecast a old style object as its parent?

    TParent = object A : integer; end; TChild=object(TParent) B : integer; end; var Parent : TParent; Child : TChild; begin Child.A := 10; Child.B := 20; Parent :=…

    Dennis
    0