Sign in Join

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

Mailing lists / fpc-pascal

fpc-pascal · 2011-12

  1. fpGUI Toolkit v0.8 release for FPC 2.4.4 & 2.6.0-rc

    I'm glad to announce the next release of fpGUI Toolkit. fpGUI v0.8 ---------- An archived source download and pre-built binaries for DocView (fpGUI's Documentation…

    Graeme Geldenhuys, Howard Page-Clark, Paul Breneman
    7
  2. fpc 2.6.0-rc1 for arm-embedded

    I had some problems making or using a compiler for arm-embedded so I tried the new 2.6.0-rc1. Compiling with : make clean buildbase installbase CROSSINSTALL=1…

    Koenraad Lelong, Den Jean, Graeme Geldenhuys
    25
  3. TFPHTTPClient Post works with jetty, fails with tomcat

    For some reason TFPHTTPClient.Post hangs when accessing a "solr" server over "tomcat". It works with "solr" over "jetty". "curl" works fine with both, so I guess the…

    Mattias Gaertner, Michael Van Canneyt, Rainer Stratmann
    9
  4. using exceptions

    Exceptions like the name suggested, is to mark something that you are not suppose to expect. For example while getting a data something went wrong, like disconnection,…

    ik, Anton Shepelev, Bart
    21
  5. -OoASMCSE

    [actual question is in the last paragraph of this post] I recently stumbled over an old (closed) bug in the bug tracker where the solution was to remove ASMCSE from O3,…

    Bernd, Florian Klämpfl, Jonas Maebe
    7
  6. Finished full JVM Android application

    Hello together! Today I've finished my first JVM Android application. This could as well be the first (or at least one of the first) complete JVM Android app written in…

    Sven Barth, Felipe Monteiro de Carvalho, herux
    7
  7. compiling the compiler from within the Lazarus IDE

    I have never ever tried to hack on the compiler itself before so this is probably a stupid question (and probably not the last one) but I assume there is a simple answer:

    Bernd, Florian Klämpfl
    2
  8. TFPList and the ForEachCall

    could somebody show me an example of how to use TFPList and the ForEachCall? Or point me to a documentation where the proper syntax is explained. I don't know how to…

    Jiří Pavlovský
    0
  9. [OFF-TOPIC] Nephelae open source small business software

    for some reasons i started an open source small business software named Nephelae. I setup the source code repository, mailing lists, trackers etc at…

    Dimitrios Chr. Ioannidis
    0
  10. GCC attributes when binding code

    I found the following code: /* this is a special 64bit data type that is 8-byte aligned */ #define aligned_u64 u_int64_t __attribute__((aligned(8))) And few other…

    ik
    0
  11. operator in

    Why operator 'in' has a limit? procedure TForm1.Button1Click(Sender: TObject); var t,r1,r2: Integer; begin t := 359; r1 := 252; r2 := 253; if r2 in [r1..t-1] then //…

    Marcos Douglas, Jonas Maebe, Michael Van Canneyt
    3
  12. How to create this "union" ?

    I'm trying to translate the following to Pascal: ------------ struct xt_option_call { const char *arg, *ext_name; const struct xt_option_entry *entry; void *data;…

    ik, dmitry boyarintsev, Jeppe Græsdal Johansen
    7
  13. Forward declarations

    Can anyone think of a situation in which you would *have* to use forward declared functions? I'm trying to come up with an example for such for my book, and I am…

    Timothy Groves, Anton Shepelev, Jonas Maebe
    15
  14. Map of values to array of records

    how can I create two level map where value is array of records? These records are constant - I don't need to compute them or anything. I'm quite new to pascal and for…

    Jiří Pavlovský, Howard Page-Clark, ik
    4
  15. iptables rules unit for FPC

    Have anyone know of any open source iptables based rule generators written in FPC or any other Pascal compiler ? Thanks and marry Christmastime/Hanukkah , Ido

    ik
    1
  16. LGPL rtl

    I think all freepascal people have a misunderstanding of LGPL. If you statically link the lgpl code into your EXE, your exe is the module under lgpl now. Therefore all…

    Unknown author, ik, Mark Morgan Lloyd
    4
  17. where are the sources for rtl.chm, fcl.chm ref.chm etc.?

    I am trying to build the chm help files (rtl, fcl, and ref) from source (to use them with Lazarus) and cannot find find them anywhere. I have found downloads of ready…

    Bernd, Felipe Monteiro de Carvalho, Marco van de Voort
    4
  18. Meego Harmattan (Nokia N9) and fpc

    Successfully created cross arm with 2.4.5 (console apps works fine on this device), but have problems with lazarus projects.…

    zeljko, Felipe Monteiro de Carvalho
    1
  19. Darwin i386 socket polling

    I'm needing to figure out how socket signaling mechanisms work under darwin. Windows and Linux work, Darwin however does not support ePoll. Anyone have any experience…

    Andrew Brunner, Helmut Hartl, Henry Vermaak
    4
  20. FPC for ARM

    Hi Is FPC 2.2.2 really the latest native release for ARM processors? I guess it can build the more recent versions. (?) In school we have an interesting project…

    Juha Manninen, Dariusz Mazur, Felipe Monteiro de Carvalho
    15
  21. Contributed units on freepascal site

    The contributed unit section on the freepascal site does not work anymore. Can someone please have a look and fix this? Is there an alternative link available? Regards,…

    Unknown author, Graeme Geldenhuys, Jonas Maebe
    7
  22. Timer in X11

    Does anyone know what would be the solution for implementing timer support in a X11 toolkit? I already have TTimer support implemented for LCL-CustomDrawn-Windows, Cocoa…

    Felipe Monteiro de Carvalho, Graeme Geldenhuys, Henry Vermaak
    36
  23. inline and other modifiers

    I have the following: unit foo; {$mode objfpc}{$H+} interface uses foobar; function BitCnt(ABitmap: TBitBoard): Integer; implementation {$ifdef cpu386} function…

    Bernd, Jonas Maebe, Unknown author
    7
  24. alias a function + overload 'in'

    two little questions 1. Is it possible to make an alias to a function ... so rather than just re-calling with the same parameters, it's actually the same thing? like the…

    David Emerson, Howard Page-Clark, Jürgen Hestermann
    9
  25. FpGetRLimit and FpSetRLimit reference an undefined symbol

    When I attempt to use fpgetrlimit and fpsetrlimit from the baseunix unit (see http://www.freepascal.org/docs-html/rtl/baseunix/fpgetrlimit.html and …

    Seth Grover, Jonas Maebe, Marco van de Voort
    3
  26. Testing applications with FPCUnit

    Navigating in FPC source codes, I found fpcunit. It's really wonderful. With the tTestCase class, we can generate a report with the success or the failure of our tests.…

    luciano de souza, Felipe Monteiro de Carvalho, Graeme Geldenhuys
    17
  27. debian control files for fpc

    I'd like to roll my own fpc-2.4.4 .deb for in-house development The lazarus sources seem to include a debian directory with all the control files, which is wonderful!…

    David Emerson, Marco van de Voort, Vincent Snijders
    4
  28. News from MSEide+MSEgui

    MSEide+MSEgui 2.8rc1 for FPC 2.6 has been released: http://sourceforge.net/projects/mseide-msegui/files/mseide-msegui/2.8rc1/ There is also a new beta for MSEgit:…

    Martin Schreiber, David Emerson
    2
  29. possible json parser memory leak

    I'm using FPC 2.6 (rc) x86_64 on Linux with JSONParser. I've written the following code: ----------------------- uses fpjson, jsonparser, SysUtils, classes; var parser …

    ik, Frank Church, Michael Van Canneyt
    6
  30. Memory leak

    While dabbling with pointers, I came across a memleak for which I don't understand why it happens. Hopefully someone can help me with it. mytest^.name :=…

    Unknown author, Jonas Maebe
    5
  31. Generics and Mac

    I used generics in Lazarus code base for the first time, in TreeFilter component: TTreeNodeList = specialize TFPGList<TTreeNode>; and TBranchList = specialize…

    Juha Manninen, Jonas Maebe
    3
  32. JSON Dataset in FCL-DB.

    I just committed a JSON dataset in fcl-db. This is a dataset which stores its data in JSON objects (as in fpjson) in memory. The records are in a JSON array, each record…

    Michael Van Canneyt, Leonardo M. Ramé
    8
  33. initializing pointer values

    On implementing a linked list I hit to some unexpected (doesn't mean incorrect though) behaviour. ptest = ^test; test = record p: pointer; end; new(mytest); When I…

    Unknown author, Michael Van Canneyt
    3
  34. CPU registers and function calls, unclear explanation in the docs

    The programmer's guide says in chapter 6.3 that when using "register" convention then it does not save any registers. A very old version of this document even said…

    Bernd, Jonas Maebe
    2
  35. Distributing unit object files

    I'm needing to figure out how best to "close" or "seal" units so that I can use the compiled unit object files instead of the actual unit files. The problem is that the…

    Andrew Brunner, Jonas Maebe, Ludo Brands
    2
  36. Re: How to poll for a byte in Input?

    Thank you very much. I will try your approach, as I'm interested in the piping. I also did some experimenting with SetConsoleMode, and also with SetFileAttributes, and…

    tcoq, Martin Schreiber
    3
  37. PPU checksum issue

    I'm trying to rebuild Lazarus with some components, and having the following error message on an FPC based unit: PPU Loading…

    ik, Jonas Maebe, leledumbo
    5
  38. nostackframe -- possible to create faulty code?

    Is it thoretically possible to make an otherwise perfectly working program crash with access violation only because I used the nostackframe modifier on a nested…

    Bernd, Jonas Maebe
    4
  39. UTF-16 strings

    When targeting not-Windows (i.e. predominantly Linux but possibly other unixes) and wanting to do character-by-character parsing of 16-bit Unicode characters, what's the…

    Mark Morgan Lloyd
    0
  40. Shared libries

    Hi. I'm trying to create a shared library (under linux) and I not sure what the difference between the modifier *export* and the section *exports* is? Or perhaps when to…

    Torsten Bonde Christiansen, ik, Jonas Maebe
    16
  41. Sorting an open unidimensional array

    I want to sort an open unidimensional array of integers from the minimum to the maximum and from the maximum to the minimum. Is there a standard unit providing this kind…

    Luciano de Souza, Martin Schreiber
    2
  42. IInterface type value and the "as" keyword

    after a long pause I'm trying to revive some code which I didn't touch as long as early this year. At that time it compiled OK with trunk FPC (I believe version 2.5.1).…

    Honza, Marco van de Voort
    2
  43. "Free Pascal Programmer's Guide" - where is the latest version?

    This document: http://www.freepascal.org/docs-html/prog/prog.html is for the stable version 2.4 Does anybody know where I can find the development version of it (2.5.1…

    Bernd, Michael Van Canneyt
    5
  44. CloseThread needed? still unclear

    While testing an updated version of nYume (aservia) I found that the program is leaking thread handles on Ms Windows. The program uses BeginThread and EndThread calls.…

    Unknown author, Sven Barth
    5
  45. Fatal: Internal error 200109227... and some boolean questions

    Linux/i386, 2_6 branch var a : QWord; x : QWordBool; y : QWordBool; begin a := QWord($ffff000000000000); x := QWordBool(a); y := not x; fpwinglet.lpr(21,3) Fatal:…

    Bernd
    1
  46. Readline substitute

    Hi! I want to equip a program with a command line and therefore want a powerful and user-friendly input prompt. Currently I use ReadLn(CmdLine); which is not as…

    Johann Glaser, Bernd, Jonas Maebe
    8
  47. Re: How to poll for a byte in Input?

    I have found and tried WaitForSingleObject, using the following syntax: ThereIsACharacterToRead := WaitForSingleObject(StdInputHandle,0) = 0; While…

    tcoq, Michael Van Canneyt
    2
  48. Why is Random(255) some 529x slower compared to Delphi 7?

    I'm busy working on some of the remaining unit tests for the tiOPF project that doesn't run 100% to my satisfaction yet under FPC (compared to Delphi 7). One of the…

    Graeme Geldenhuys, Andreas Berger, Bart
    69
  49. How to poll for a byte in Input?

    I'm trying to poll the input stream to see whether there is a new character available, without blocking my software. I've tried "Read" and "THandleStream.ReadByte" but…

    tcoq, Chad Berchek, Jorge Aldo G. de F. Junior
    9
  50. Re: Why is Random(255) some 529x slower compared to Delphi 7?

    only those that take their jobs seriously and read help/manuals iso assuming? :-) I actually doubt that that codesnippet does any real encryption. From what I understand…

    Dimitri Smits, Graeme Geldenhuys, Jorge Aldo G. de F. Junior
    3