Sign in Join

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

Mailing lists / fpc-pascal

fpc-pascal · 2016-02

  1. Primitive Record Wrappers

    In some situations, would be very interesting to determine whether the value of a primitive variable is initialized or not. For example, fields in database records can…

    Mazola Winstrol, Constantine Yannakopoulos, Dmitry Boyarintsev
    38
  2. Codepage + class helper raises "Error identifier idents no member ..."

    Consider the following code: === code === program project1; {$mode objfpc}{$H+} *//{$codepage utf8}* uses Classes; type TFoo = class helper for TStream public procedure…

    silvioprog, Bart, Sven Barth
    11
  3. Bug in FPC 3.0.0 (was: Bug in FPC 3.0.0?)

    Sorry, my previous example was not complete. Here is a problem detected when compiling UniDAC 6.2.8. Taken from real code in VirtualTable.pas program Project1; {$MODE…

    Serguei TARASSOV, Bo Berglund, Flávio Etrusco
    39
  4. Happy tickets benchmark

    Here is my little brute-force test for FPC, C and C# compilers. http://arbinada.com/main/en/node/1532 The results are not so good with FPC but I cannot use Delphi to…

    Serguei TARASSOV, Adrian Veith, Dmitry Boyarintsev
    58
  5. Wiki (image) uploading temporarily disabled

    The tech support scammers discovered that mediawiki's antispam regex doesn't get applied to image descriptions, so they're now attacking us that way. I hope to find a…

    Jonas Maebe
    1
  6. Crash using library.

    Hello. I use a audio library (libfaad.so) for reading *.m4a audio files. But, after 2 loading-run, the program crash. Here is the result of the debugger: Program…

    fredvs
    1
  7. Possible bug in Numeric test

    Not sure if this is considered a bug or not :) I have found this function returns TRUE if passed 'E1/E2/etc' I am guessing it is seeing the 'E' as exponent function…

    steveg, Bart, Nitorami
    5
  8. Forcibly terminating a thread

    I've got a program here which, under some conditions of testing, ends up with a thread stuck inside a system call (detail: a mainframe emulator, which is still trying to…

    Mark Morgan Lloyd, Jonas Maebe
    2
  9. Tar messages when running the installscript from fpc-3.0.0.i386-linux.tar.

    I installed fpc 3.0 on my "new" Debian system, running the script form fpc-3.0.0.i386-linux.tar. This shell script will attempt to install the Free Pascal Compiler…

    Bart, Mark Morgan Lloyd
    5
  10. Official/recommended citations for scientific papers

    this is a cross-post to FPC-Pascal and Lazarus mailing lists. I'm finishing my PhD thesis and because I was implementing some partial differential equation solvers and…

    Žilvinas Ledas
    0
  11. Include directive for current procedure/method/function name?

    I vaguely remember somebody requesting something like this, but not sure if it was every implemented in FPC 2.6.4 or FPC 3.0. A macro that one can use in code to return…

    Graeme Geldenhuys, Sven Barth
    3
  12. Building FPC for Windows X64

    I'm having some issues where when I try to build fpc for windows x64 from win32 it seems to have a few issues I build my fpc from the trunk release using this command…

    Justin Smyth, Jonas Maebe, Sven Barth
    3
  13. Problem with StrMove() in a unit compilable in FPC and Delphi

    I want to use the StrMove() function in a unit compilable in Delphi (XE) and FPC, but I don't know why it doesn't work on FPC. Consider the following code: {$IFDEF FPC}…

    silvioprog, Jonas Maebe
    5
  14. Wiki etc.- where?

    http://www.freepascal.org/ points to http://wiki.freepascal.org/ for the wiki, which is giving me a permanent 403 "Forbidden". Anybody know what's going on? Mark Morgan…

    Mark Morgan Lloyd, Jonas Maebe, Lukasz Sokol
    5
  15. MSEide+MSEgui 4.2

    MSEide+MSEgui 4.2 has been released: https://sourceforge.net/projects/mseide-msegui/files/mseide-msegui/4.2/ There are also new versions of MSEgit, MSEspice and MSErun:…

    Martin Schreiber
    0
  16. Compiler Mode?

    On another forum a Free Pascal user opined that {$MODE DELPHI} is wrong and should not be used other than for people or companies trying to convert Delphi code to Free…

    Anthony Walter, Graeme Geldenhuys, Maciej Izak
    9
  17. ARM CMSIS support

    looking at the embedded source code there has been done a lot of work. I'm interested in trying fpc on Cortex-M3 and M4, mostly from ST. While trying to get an overview…

    Marc Santhoff, Bernd Mueller, Jeppe Johansen
    13
  18. Building Android cross compiler error

    I’ve downloaded FPC 3.0.0 and updated the sources from SVN then downloaded the Android NDK (Mac OS X 64-bit was the only option for Mac). The script seems to work but…

    Ryan Joseph, Michalis Kamburelis
    2
  19. Bug in FPC 3.0?

    UniDAC doesn't compile with Lazarus 1.6/FPC 3.0. The case may be reproduced on following example. program Project1; {$MODE DELPHI} uses SysUtils, Classes, DB; var F:…

    Serguei TARASSOV, LacaK, Michael Van Canneyt
    4
  20. Android porting ideas

    I’m going to attempt to port a game to Android but I have some questions about potential problems. Now at least I think building a library and loading using the JNI…

    Ryan Joseph, leledumbo, Michalis Kamburelis
    9
  21. Delphi compiler team left Embarcadero/Idera

    Looks like the last one senior compiler guy has gone - Allen Bauer (like Eli Boling before). He is starting a new position at Google:…

    Maciej Izak, Anthony Walter, Bo Berglund
    10
  22. Variable Initialization Questions

    After googled and searching in the documentation, http://free-pascal-general.1045716.n5.nabble.com/does-Advanced-Record-constructor-automatically-zero-all-the-memory-spac…

    Mazola Winstrol, Jonas Maebe, Klaus Hartnegg
    7
  23. Wiki upgraded

    The wiki has been upgraded to MediaWiki 1.23.13 LTS. I've also replaced our custom captcha with Google's ReCaptcha, as we've been hit very hard by spammers the last…

    Jonas Maebe, Dmitry Boyarintsev, Graeme Geldenhuys
    4
  24. [PATCH] Addition of OnNotify event on "TFPGObjectList" and "TFPGList" triggered on the insert, delete and extract methods.

    I have a friend here in Brazil that added the `notify` support to the FGL lists, however he sented it to this Github PR [1]. I'm contacting him to explain how to send it…

    silvioprog, denisgolovan, Graeme Geldenhuys
    19
  25. Lazarus Release 1.6

    The Lazarus team is glad to announce the release of Lazarus 1.6. This release was built with FPC 3.0.0. The previous release Lazarus 1.4.4 was built with FPC 2.6.4. Here…

    Mattias Gaertner, Juha Manninen, Martin
    9
  26. {$J} default setting for today

    Hi, I read this: http://www.freepascal.org/docs-html/ref/refse10.html "Support for assigning values to typed constants is controlled by the {$J} directive: it can be…

    Mr Bee, Bart, Graeme Geldenhuys
    4
  27. How to pass an array of bytes directly in a TBytes param?

    Consider the following procedure: procedure test(b: TBytes); begin end; The common way to pass an array of bytes in this procedure is declaring and initializing a TBytes…

    silvioprog, Dmitry Boyarintsev, Nitorami
    4
  28. Re: fpc-pascal Digest, Vol 140, Issue 69

    Exactly, the variance too. Many things matter. My example shows only that AVG estimation is better than MIN in the simple technical test with 10 runs because of average…

    Serguei TARASSOV
    0
  29. [OT] News-Flash: fpc-other is now on Gmane !

    Yay http://dir.gmane.org/gmane.comp.compilers.free-pascal.social However has not yet hit the gmane nntp hierarchy (at the time of writing this post); The first post it…

    Lukasz Sokol
    0
  30. Re: Happy tickets benchmark

    Not at all, any series against MIN delivers the best value for MIN(result) not for runtime! Ex. Prog 1 Run 1: 130 = 100 + 30 Run 2: 160 = 100 + 60 Run 3: 170 = 100 + 70…

    Serguei TARASSOV, Adrian Veith, Lukasz Sokol
    2
  31. internal error with bitpacked record in i386 with O3

    (I know this is more suited for fpc-devel, but every email I sent to that list gets bounced back to me. My apologies.) I logged this mantis issue:…

    Seth Grover, leledumbo
    1
  32. Re: Happy tickets benchmark

    Sounds like the real-life programs don't use inner loops or don't solve NP-complete problems :) For info, my real-life examples are the application server and the DSL…

    Serguei TARASSOV, Adrian Veith, Mark Morgan Lloyd
    4
  33. Please someone explain this to me

    I really don't like the include files with Lazarus and Free Pascal for the following reason: How the **** am I supposed to know which file is including an include file?…

    Anthony Walter, Adriaan van Os, Andreas Schneider
    52
  34. Re: Happy tickets benchmark

    It's a wrong choice. As we can see and reproduce, at least C# or other Pascal-like environments (Oxygene) are significantly faster.…

    Serguei TARASSOV, Michael Van Canneyt
    1
  35. Re: Happy tickets benchmark

    As I said, the goal of the test is to compare the compilers, not the programmer's intelligence. You should remove inner loop from C and C# code to get a meaningful…

    Serguei TARASSOV, Florian Klämpfl, Martin
    2
  36. Assign() vs AssignTo()

    In TPersistent, we have two virtual methods. Assign() which calls AssignTo(). 1) Why are they both virtual? It seems like Assign() is what I call a template method,…

    Graeme Geldenhuys, Andreas Schneider, Dennis
    9
  37. Nice const array messages. Thanks!

    I just noticed this really nice compiler feature. I don't know when it as added but it's really helpful. When defining const array like below the compiler will tell you…

    Anthony Walter
    0
  38. Recovering info from a backtrace with an external debug file

    I compiled a program with -Xg (generating an external debug info file *.dbg) And deployed the executable without the debug info When an exception occurs i get a…

    Luiz Americo Pereira Camara, Luca Olivetti, Martin
    6
  39. EDatabaseError on SELECT

    I'm posting here because this seams to be an issue with using sqldb, my SQL seams to be ok. I create a table and add a row to it, but when trying to read that same row…

    Felipe Monteiro de Carvalho, Michael Van Canneyt, Stephen Chrzanowski
    9
  40. Format and Cardinal

    Why does this trigger an range check exception: var lNum: Cardinal; lStr: string; begin lNum := High(Cardinal); lStr := Format('Num=%u', [lNum]); Format doesn't support…

    Felipe Monteiro de Carvalho, Jonas Maebe
    3
  41. Re: FPC and SSH (Mark Morgan Lloyd)

    Here's a link to the interface files I use for acting as an ssh client via libssh2. I've included my libcurl headers as well. There are two versions of each, one for…

    Seth Grover
    0
  42. FPC and SSH

    I've come across http://forum.lazarus.freepascal.org/index.php?topic=15935.0 which suggests that there are some interface files to allow an FPC program to act as a…

    Mark Morgan Lloyd, Graeme Geldenhuys
    2
  43. IfThen() intrinsic removed

    Hello together! The IfThen() intrinsic has been removed again. There will be *no* replacement in the foreseeable future. This is not up for discussion. Sven

    Sven Barth, Andreas, Bart
    43
  44. Ararat Synapse UDP Rx Speed (Mbps)

    Does anyone have any benchmark speed tests using Synapse to receive UDP data ? (ie Mbps transfer). Thanks View this message in context:…

    Brian, Jonas Maebe, Sven Barth
    4
  45. Re: if-then-else expression

    I see, and it is what I said many times: you wrap the if-statement into pseudo-function. This make no sense and will be source of programmer's errors. The simplest case…

    Serguei TARASSOV, Dmitry Boyarintsev, Jonas Maebe
    2
  46. Re: if-then-else expression

    Holy sh*t, ça continue ! :) Even if evaluation order will be assured and well documented, it doesn't make sense! Example : x := iif(Obj = nil, 0, Obj.Value); // Seems…

    Serguei TARASSOV, Dmitry Boyarintsev, silvioprog
    3
  47. The IfThen() thread is now closed

    I think that everyone has had ample opportunities to exchange their views on this topic, so it's now closed on this list. If you want to discuss it further, you can do…

    Jonas Maebe, Lukasz Sokol
    1
  48. Re: if-then-else expression

    And I just noticed that I sent this to fpc-devel instead of fpc-pascal... *sigh* So here it is again for fpc-pascal as well. Sven

    Sven Barth, Dmitry Boyarintsev, Flávio Etrusco
    16
  49. Re: New feature: IfThen() intrinsic

    Why make the things complex? Why create another "special case"? Look at the "iif" as an statement and the things will be simple. Disagreed. The principal difference…

    Serguei TARASSOV, John Lee, Jürgen Hestermann
    11
  50. Error compiling FPC trunk under Linux

    Hi! I'm trying to build FPC on linux x64, using makepack script, but I have Internal error 2007020810. Bellow the script output: /usr/bin/ppcx64 -Ur -Ur -Xs -O2 -n…

    Fabio Luis Girardi, Jonas Maebe, Sven Barth
    5