Sign in Join

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

Mailing lists / fpc-pascal

fpc-pascal · 2012-03

  1. Win64 and currency

    I encounter strange thing under FPC 2.7.1 and Win64 target. Can anybody test this program: ======================== const test: array[0..0] of currency = (-10); var…

    LacaK, Honza, Marco van de Voort
    4
  2. Request redirection + login session in fpweb

    I'm currently building a web app using HTTP server application project + fpweb + tiopf (with sqlite backend). However, I'm stuck in this scenario: Imagine a user log's…

    leledumbo, Unknown author
    4
  3. Passing a string to open array of string

    Hello. The following program compiles and correctly prints 'something'. Is it something supported or a bug? When I change it to Proc('something') it doesn't compile (as…

    cobines, Jonas Maebe, Martin
    4
  4. Is there a function that returns UTC time in FPC or Lazarus?

    When I get the time via the DateTime function result is adapted for the timezone, making it an hour ahead now? Is there a function that returns the UTC time, either as a…

    Frank Church, João Marcelo Vaz, Reinier Olislagers
    5
  5. Custom assignment operators

    A few weeks ago somebody (Martin?) suggested I got round an endianness issue by doing this: type WordLE= packed record b0, b1: byte; end; operator := (wle: WordLE):…

    Mark Morgan Lloyd, Sven Barth
    1
  6. SysUtils.GetEnvironmentVariable

    I think SysUtils.GetEnvironmentVariable has a problem. I tried to use GetEnvironmentVariable on WinXP and Win7. Sometimes works on WinXP, others not. But never worked on…

    Marcos Douglas, Bart, Chad Berchek
    23
  7. Why isn’t SizeOf() allowed in generic arrays?

    Could somebody explain why SizeOf() cannot be used in the definition of generic arrays? I know this is a current limitation of Delphi, but will it be possible to have…

    J.-c. Chu, Sven Barth
    4
  8. Database questions re 21579: [Patch] Dbtestframework compilationf fixes for Win64

    I've submitted a patch (21579) to allow win64 dbtestframework compilation. It does that by disabling support for some databases. Oracle, PostgreSQL, MS SQL Server and…

    Reinier Olislagers, LacaK, Sven Barth
    7
  9. Problems with broken (or unclear) download urls for fpc-solaris

    I wanted to download the latest freepascal for Sparc Solaris . Issue 1: Opened the http://www.freepascal.org/download.var , clicked on the "SPARC Solaris" link. It…

    Adrian Maier, Mark Morgan Lloyd
    3
  10. Extended SVN class available

    Working on fpcup, Ludo Brands and I extended the fppkg SvnCommand unit. Functionality: - detects svn clients automatically (even a few well-known if not in path on…

    Reinier Olislagers
    0
  11. FPWebModule: BeforeResponse event?

    I want to do something like this: A base module (call it ModLayout) writes a header, then a descendant module (say Mod1, Mod2 and so on) writes the inner content, ended…

    leledumbo, Unknown author
    3
  12. DBTestframework compilation on Win64: no postgres sonnector

    Trying to compile the db test framework on FPC x64 on windows x64 *), I get a missing PostgreSQL connector: C:\Development\fpctrunk\packages\fcl-db\tests>ppcx64…

    Reinier Olislagers
    1
  13. Problems compilng dbtestframework FPC trunk

    FPC trunk, trying to run make in packages\fcl-db\tests\ or compiling dbtestframework.pas directly gives c:/development/fpctrunk/bin/i386-win32/ppc386.exe…

    Reinier Olislagers, Michael Van Canneyt
    2
  14. Network Library

    Hi everyone. I've not posted here before so let me introduce myself. My name is Ian Macintosh and I've been programming in Pascal on and off for some 25 odd years on…

    Ian Macintosh, Carver Carver, Jorge Aldo G. de F. Junior
    2
  15. TSimpleIPCServer bug ?

    found something strange about TSimpleIPCServer (on fpc 2.4.0) PeekMessage doesnt wait the timeout. Is this already solved ?

    Jorge Aldo G. de F. Junior
    0
  16. Burn a CD

    Anyone knows how burn a CD using the Windows API (should works in XP and Vista)? Marcos Douglas

    Marcos Douglas, Jorge Aldo G. de F. Junior, Leonardo M. Ramé
    14
  17. ImageMagick: watermark

    Is the ImageMagick (packages\imagemagick) usable to 6.XX version? In Delphi I always used the binaries. But in FPC we have the headers translations so, I want use them.…

    Marcos Douglas
    0
  18. wiki on a new server

    The Free Pascal and Lazarus wiki has been moved to a new server. Also the wiki software has been upgraded to the latest Mediawiki version. Because porting the custom…

    Vincent Snijders
    0
  19. Cygwin dlls in binw32

    While fiddling with fpcup and looking at various binutils URLs, I noticed that http://svn.freepascal.org/svn/fpcbuild/trunk/install/binw32/ has cygiconv-2.dll…

    Reinier Olislagers
    0
  20. SQLdb: problem using GDB, but do not have memleak

    I was testing the new connector to MSSQL when I found a problem. If I compile and run in console, I have no memleak. Good. But if I put a breakpoint in AConnection.Free;…

    Marcos Douglas, Jonas Maebe, Martin
    20
  21. How to handle SIGPIPE

    my app does http transfers using the Synapse library on Windows and Mac OS X. The transfers happen in separate threads. On Mac OS X only, the app is occasionally stopped…

    Tobias Giesen, Jonas Maebe, Unknown author
    4
  22. class of - instance created is wrong

    I've used the Class Of language feature a lot in the past. eg: tiOPF uses it a lot, I use it to generate various reports in our company projects etc. So I tried to…

    Graeme Geldenhuys, Leonardo M. Ramé, Mattias Gaertner
    8
  23. @Michael Van Canneyt or others: exporting SQL (issue 19937)

    Good morning Michael & the rest, Would any of you committers who are familiar with SQL check to see if my patch at http://bugs.freepascal.org/view.php?id=19937 is…

    Reinier Olislagers, Marco van de Voort, Michael Van Canneyt
    4
  24. [No subject]

    Mark Morgan Lloyd
    0
  25. [No subject]

    Mark Morgan Lloyd
    0
  26. makepack broken?

    Are install/makepack script broken? I run it and I got following output: $ export CHECKLIBGDB=no $ export NOGDB=1 $ touch ../doc-pdf.tar.gz $./makepack ... Copying…

    Fabio Luis Girardi, Marco van de Voort
    1
  27. MSEgit 1.0

    If you are interested in a FPC-based GPL-ed git frontend, MSEgit 1.0 has been released. Binaries: https://sourceforge.net/projects/mseuniverse/files/msegit/1_0/…

    Martin Schreiber
    0
  28. Real System Make Money Easy 2012 Trend‏‏‏‏‏

    Dear Friend; Thousands of people from all over the world are earning substantial incomes from home just by completing simple online surveys. This new system realy work!!!

    Geril Senem, Florian Klaempfl, Frank Church
    9
  29. compiling 2.6.1 from 2.4.5

    I come back to freepascal after one year and I wanted to build all versions from my already installed 2.2.5. Builds: - 2.4.0 from 2.2.5 : OK - 2.4.2 from 2.4.0 : OK -…

    Thierry B., Jonas Maebe, Marco van de Voort
    6
  30. Pointer to temporary string

    Hello. Is storing and using pointers to temporary strings safe? Like in the following program. I think I remember reading on the mailing list that it is not, but I…

    cobines, Jonas Maebe
    2
  31. Help

    Help Best regard, Andi.

    Andi Purwito
    0
  32. Currency and ABS(-674.59)

    I found this problem in Delphi and FPC, please test it and confirm if it is a bug. ------------------- program test_abs_curr; uses sysutils; var a: Currency; begin a :=…

    Zaher Dirkey, Flávio Etrusco, Graeme Geldenhuys
    25
  33. status of MIPS port

    Whats the status of the MIPS port ? I am currently working on a project called "OpenTik", wich aims at replacing mikrotik's routeros with a completely opensource…

    Jorge Aldo G. de F. Junior, Mark Morgan Lloyd
    1
  34. fpWeb: Error when trying to call a module without an action

    Hello together! As I already said on fpc-devel I'm currently playing around with fcl-web and hit the next problem: I successfully managed to build and run my first…

    Sven Barth, Unknown author
    3
  35. FPC Advanced Records

    Can an Advanced Record, i.e. a record which as well as having fields has at least one embedded function, be safely used as a cast or type transfer overlaying…

    Mark Morgan Lloyd, Jonas Maebe, Ludo Brands
    9
  36. xterm -e program-compiled-with-fpc2.4.0 doesn't work

    With the advent of Debian6 fpc 2.4.0-2 has become the only available version. Before that, it may have been 1.0 ? A simple program of mine compiled in 2008 with the old…

    max, Bernd, Jonas Maebe
    12
  37. Trim(): incompatibility with Delphi

    Brought up in Lazarus forums. Fpc Trim(): Trim whitespace from the ends of a string. Delphi Trim(): Trims leading and trailing spaces and control characters from a…

    Bart, Bernd, Flávio Etrusco
    11
  38. Why can't you cross-compile from x86_64-linux to i386-linux?

    As the subject line says? As can be seen below, i386 is not a supported target. ------------------------------- $ fpc -i Free Pascal Compiler version 2.6.1 Compiler Date…

    Graeme Geldenhuys, Sven Barth
    3
  39. FPC & Lazarus GIT mirrors

    Yes, thank you. I was rebuilding two of our servers over the weekend. One server was running the fpc & lazarus git mirror sync scripts. I'm now adding the final touches…

    Graeme Geldenhuys
    1
  40. Variant vs Pointer

    The TField class have the FValueBuffer: Pointer attribute and have also SetData(Buffer: Pointer,...) method that all T***Field subclasses use to set themselves. The…

    Marcos Douglas, Alberto Narduzzi, Ludo Brands
    16
  41. How create a full text search with TChmWriter?

    I'm using TChmWriter to pack some html files into a chm file. The index works. I don't have a TOC. Now I want a full text search. I set Writer.FullTextSearch to true, it…

    Mattias Gaertner, Andrew Haines, Felipe Monteiro de Carvalho
    23
  42. [ot] Some(paid) work to do in FreePascal

    (Sorry if it's the wrong place to post that, please point my to any list best suited for that) I would like the following tool, coded in FPC for Linux 64, in command…

    John Sewell
    0
  43. Re: Re: Duplicate Identifier

    (Changing the topic to indicate OT) I didn't really take time to figure out whether it "should" be happening or not, I just changed the references not to conflict. If…

    Noah Silva, leledumbo, Marcos Douglas
    17
  44. OT: Amazing new development tools

    I found the following amazing lecture that present a new idea of a development tool, that I think will interest you all: http://vimeo.com/36579366 Enjoy Ido

    ik, Graeme Geldenhuys, Jonas Maebe
    19
  45. fpdoc is broken for LINK'ed documentation

    I've been trying to figure this out all morning, and after 2 hours I still can't see why fpdoc doesn't work correctly. I have linked documentation in descendant classes…

    Graeme Geldenhuys
    0
  46. Weird compilation warnings

    FPC is returning the "Warning: cdecl’ared functions have no high parameter" but I have no idea why. The documentation just says "Functions declared with the cdecl…

    Guillermo Martínez Jiménez, Sven Barth
    2
  47. Pascal type-parametric definitions

    Why are type-parametric definitions called generics in Pascal? It seems to me their semantics is like templates in C++, not like generics in Java/C# (or ML languages).…

    Lukasz Stafiniak, Sven Barth
    1
  48. Functional Pascal

    On Wed, Feb 29, 2012 at 11:31 AM, Sven Barth The main point is to perform some computation whose result is subsequently captured when the nested function is defined…

    Lukasz Stafiniak, Marco van de Voort
    2
  49. Where and how is the FPC documentation created?

    A few months ago I inquired and got some info about FPC docs - discussed in this thread http://lists.lazarus.freepascal.org/pipermail/lazarus/2011-November/068595.html,…

    Frank Church, Graeme Geldenhuys, Michael Van Canneyt
    25
  50. What is the most widely used Pascal on Linux and other Unix variants?

    What is the most widely used Pascal on Linux and other Unix variants? Is it Free Pascal? Frank Church ======================= http://devblog.brahmancreations.com

    Frank Church, Alberto Narduzzi, Graeme Geldenhuys
    24