Sign in Join

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

Mailing lists / fpc-pascal

fpc-pascal · 2012-07

  1. Initialization of class field

    I'm reading about variable initialization (http://www.freepascal.org/docs-html/ref/refse22.html) . Can I initialize class field too? Like in Java: type TMyClass = class…

    Krzysztof, Bart, leledumbo
    7
  2. Byte ordering in IP4 and IP6 addresses

    If preparing an address returned by fpgetpeername() for display or logging, should I be using HostAddrToStr() or NetAddrToStr()? Is anybody aware that HostAddrToStr()…

    Mark Morgan Lloyd
    0
  3. [OT] GPL Lisence help

    first let me express my apologies for the off topic question. I'm having trouble to choose the correct gpl lisence for a new open source project that i'm starting. I…

    Dimitrios Chr. Ioannidis, Attila Kinali, Daniel Gaspary
    7
  4. missing library name in external declaration in ascdef.inc

    There seems to be 'kernel32' missing in two functions in ascdef.inc of the rtl/win/wininc: FindFirstFileEx and FindFirstFileTransacted

    CA Gorski, Florian Klämpfl
    1
  5. File Enumeration speed

    I am enumerating thru large numbers of files on my disk, and find I cant come close with findfirst / findnext to matching the speed of cmd line apps available in linux…

    SteveG, Flávio Etrusco, leledumbo
    5
  6. Getting UTC time etc.

    I know that this was discussed a couple of months ago, but I had difficulty working out what the consensus was. i) Is there an FPC function which will get the raw time…

    Mark Morgan Lloyd
    1
  7. Generating templates with FPTemplate

    I am trying to create an example with the FPTemplate unit. Firstly, I wrote a hypothetical unit template. {e030.txt} unit <#name>; {$mode objfpc}{$H+} interface uses…

    luciano de souza, leledumbo, Unknown author
    6
  8. POSIX capabilities library

    Does FPC have an interface to the POSIX capabilities library, which I believe is libcap or possibly libcap-ng? Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk…

    Mark Morgan Lloyd
    1
  9. FPC and IPv6, and BSD

    I'm trying to write a simple finger daemon, capable of both IP4 and IP6. At present it's using an unprivileged socket so as to avoid problems on unix platforms. I appear…

    Mark Morgan Lloyd, ZAN DoYe
    3
  10. Dynamic messaging in Delphi

    I was asking on the Mac Pascal list if Delphi had any ways to invoke methods on objects which the class was unknown at compile time (like a class that invokes a user…

    Ryan Joseph, Graeme Geldenhuys, Ludo Brands
    8
  11. UnicodeString comparison performance

    As I'm moving further into my experiments with FreePascal 2.6.0, I have run into a strange issue related to UnicodeString comparisons. Basically, I'm comparing the…

    OBones, Jonas Maebe, leledumbo
    9
  12. fcl-passrc package question about source file and line number info

    Greetings! I've been using fcl-passrc (PParser and PasTree) to create a tool to help me with coverage analysis. Using the example provided in the package directory as a…

    Seth Grover, Michael Van Canneyt
    21
  13. Nginx, FastCGI and /module/action vs ?module=module&action=action

    I have a web app that works fine with embedded http server, but due to its current bugs, I need to switch to something more reliable. So I choose FastCGI and a great web…

    leledumbo, Luiz Americo Pereira Camara, Michael Van Canneyt
    9
  14. Inter-process communication, a cautionary tale

    I was reminded of this when somebody was asking about portable signalling APIs the other day, but I think it's also relevant to discussion of e.g. how to pass a keyword…

    Mark Morgan Lloyd, Marco van de Voort, Mattias Gaertner
    20
  15. Floating point discrepancy in x64 mode

    Let's consider the following test program: program test; function DirectCompute: Double; var k: Integer; begin k := 0; Result := (k+0.5)/12; end; function…

    OBones, Jonas Maebe
    2
  16. Cross-compiling Win64=>Win32 fails

    I've been extending fpcup, trying to add Win64=>Win32 cross compiler ... see latest revision on https://bitbucket.org/reiniero/fpcup/changesets With FPC trunk, I get…

    Reinier Olislagers, Jonas Maebe
    2
  17. Database problem on Solaris SPARC

    I've found a problem when a (well-tested) program that connects to a PostgreSQL database is compiled and run on Solaris 10 for SPARC, Linux SPARC is OK. I appreciate…

    Mark Morgan Lloyd, Graeme Geldenhuys, Jonas Maebe
    32
  18. Variable of class method type of function

    How to declare a variable of class method type of function? ... var MyVar: function(AParam: string): boolean of class; ... gives an error using FPC 2.6.1 (Win64).

    CA Gorski, Bernd K., Jonas Maebe
    8
  19. Cross platform signal handler?

    Do we have it? And if not, what's the available solution for windows? View this message in context:…

    leledumbo, Andreas Schneider, Sven Barth
    4
  20. How to write text to the console?

    Hope I got your attention with the subject ;) After having had help on the list I managed to write UTF8 text to the Windows Vista console using 2.6 However, my test…

    Reinier Olislagers, Unknown author
    3
  21. Small and not instalable web server for a local Pascal CGI application

    I am running some CGIs in localhost. When talking about web servers, the name of Apache comes as natural. However, I would like to share some zip files to show the…

    luciano de souza, Graeme Geldenhuys, Jorge Aldo G. de F. Junior
    4
  22. Patch application

    I uploaded a patch in #22359 about a week ago but I see that it’s not been applied yet. (There was something wrong in previous versions but I believe the latest one…

    JC Chu, Sven Barth
    2
  23. BUG:flush the serial in FPC2.6.0

    I am trying to flush the serial incom on Linux with no success. So far I have: serial.pp in fpc 2.6.0 is SerFlush, which calls fpfsync, intended to discard input data,…

    kc87654321, Mark Morgan Lloyd
    2
  24. JSON and UTF8

    Following up on bug 22310 http://bugs.freepascal.org/view.php?id=22310 I enabled the use of UTF8 in the FPC JSON support. The constructors of the JSON parser/scanner now…

    Michael Van Canneyt, Jonas Maebe, Ludo Brands
    19
  25. SIGTERM and thread

    I wrote a handler to intercept the SIGTERM signal and execute some processing before terminating the program. It works fine. But when i add the cthreads unit in the uses…

    jmbottu, Jorge Aldo G. de F. Junior, Mark Morgan Lloyd
    3
  26. Win64 SEH patch fixes some Firebird embedded bugs

    Just compiled FPC with -dTEST_WIN64_SEH and noticed that fixes bugs 17360 Firebird database exceptions don't generate EIBDatabaseError but a general exception on 64 bit…

    Reinier Olislagers, Alexis Halbot-Schoonaert, Michael Van Canneyt
    18
  27. searching a programmer

    Hi All. I'm searching a programmer which is interested to develop further and serve my little CAD-system for civil engineering as home work. It's written in FPC with…

    P. Lüders
    0
  28. Reference in an articles to fpc

    I'm doing some research involving numerical simulations and I'm using fpc for it. And as I really like fpc, I would like to mention it with a reference. So the question:…

    Žilvinas Ledas
    0
  29. Define for -gh

    Seems like I can't find it. Is there anything defined when I pass -gh? I need it to create optional feature of memory leak tracer. View this message in context:…

    leledumbo
    0
  30. How can a project determine if it's using cmem?

    When building a shared library, I'm putting a (function that returns a) magic number into both the library and the calling program. This returns an integer, and allows…

    Mark Morgan Lloyd, Ludo Brands, Michael Van Canneyt
    5
  31. ..installing XCode ...make sure not to deselect UNIX development support - TOO LATE

    - I had already installed XCode 4.3 on my Mac before attempting to install fpc, and had deselected UNIX development support. I have attempted to completely remove 4.3…

    Paul McCombie, Jonas Maebe
    1
  32. StackTop and StackBottom are bogus in a Win32/64 Dll

    I'm writing Dlls here and am also doing low level analysis of the stack and its content. To do that, I use the StackTop and StackBottom global variables which used to…

    OBones, Mark Morgan Lloyd, Pierre Free Pascal
    2
  33. bug fpc-image

    i'm trying to resize a jpg via fpc-image, this is the relevant code(adapted from http://wiki.freepascal.org/fcl-image): uses fpimage, fpcanvas, FPImgCanv, …

    tazio mirandola, Bernd, Mattias Gaertner
    3
  34. Should FCL documentation be splitted?

    I would like to document some of the FCL, however the layout is still like the first time it appears in FPC. Current FCL are splitted into many subpackages, and since…

    leledumbo, Reinier Olislagers, Unknown author
    5
  35. Longstrings

    How to put longstrings globally on? I tried with {$h+} in project compiler settings (other) with no effect.

    Rainer Stratmann, Bart, Jürgen Hestermann
    12
  36. Custom operators for non-record types

    In Delphi mode, each custom operator has to be associated with a record type, and must take or return such a record. It seems that the OBJFPC mode doesn’t have this…

    JC Chu, Jonas Maebe, Sven Barth
    17
  37. Wiki down ?

    http://www.downforeveryoneorjustme.com/wiki.freepascal.org says It's not just you! http://wiki.freepascal.org looks down from here. but freepascal.org does work... Can…

    Lukasz Sokol
    1
  38. Manually handling all exceptions

    While I'm experimenting with DLLs generated by FreePascal, I made sure that every exported function has its own try..except construct so that no exception escapes from…

    OBones
    0