Sign in Join

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

Mailing lists / fpc-pascal

fpc-pascal · 2012-10

  1. TurboPower FlashFiler for Free Pascal

    Yeah, a catchy title! ;-) I want to know if anybody here has ever used FlashFiler in Delphi. Was it a good product, and do you think it would be worth the effort porting

    Graeme Geldenhuys, geneb, julioferval
    18
  2. Automatically exporting C++ API using SWIG??

    The recent thread about using C headers made me think about using C++ projects. Found that the SWIG tool converts C/C++ .h files into glue code and bindings for e.g.…

    Reinier Olislagers, download itweb, Krzysztof
    26
  3. Memoryleak in SQLite3db.TSqlite?

    I wrote a simple test program with SQLite3db program SqliteMemoryLeak; {$mode objfpc}{$H+} uses HeapTrc, {$IFDEF UNIX}{$IFDEF UseCThreads}CThreads,{$ENDIF}{$ENDIF}…

    Michael Fuchs, Michael Van Canneyt
    4
  4. Xcode

    Can somebody explain Xcode-installtion? Last version of free pascal is 2.6 and working with Xcode 3.2.6. Meanwhile last Xcode version is 4.4.1. Version 4.1 was installed…

    Franz, Felipe Monteiro de Carvalho, Jonas Maebe
    17
  5. Editing resource of executable

    I have some problem. Example: I created some exec using free pascal and lazarus. It is placed on http server. User in webbrowser click download, and server should attach…

    Krzysztof, Graeme Geldenhuys, Jonas Maebe
    22
  6. Why opening a file for write fails in fpc 2.6?

    In Linux environment the following code: try USBOut := FileOpen(UsbDev,fmOpenWrite); except result := True; end; is used in a Lazarus application to get a handle to…

    Giuliano Colla, Graeme Geldenhuys, Jonas Maebe
    21
  7. Best way to transfer data between applications?

    I am familiar with the basic underlying methods available for transferring data between processes on Windows and Unix, i.e. Pipes, Shared memory, and TCP/IP - but what I…

    印場 乃亜, Alberto Narduzzi, Ewald
    21
  8. Error compiling android example: can't locate arm-linux-as

    Can anyone shed some light on this problem for me? I am trying to configure FPC/Lazarus for Android Cross-Compiling. I have followed the directions as indicated here:…

    bsquared
    0
  9. problems compiling FPC

    I am trying to update my FPC from SVN, but for some reason I keep on getting a compilation error. The last build was from 21955 (23rd July 2012). See below for the…

    Unknown author, Frank Church, Graeme Geldenhuys
    44
  10. OT: Creating a site to contain Pascal units, libraries etc

    There are many places such as GitHub, Google Code, Sourceforge etc, that hosts a lot of open source projects, libraries etc for FPC/Pascal. On the other hand we have…

    ik, Jeppe Græsdal Johansen, Jonas Maebe
    5
  11. Range check error while evaluating constants

    I have the following function: function OneToTwoComplement(AValue: QWord): QWord; begin Result := (AValue xor $FFFFFFFFFFFFFFFF) + 1; end; What am I missing here that…

    ik, geneb, Mark Morgan Lloyd
    5
  12. Two and one compliment converting functions

    Does FPC contain any functions to convert between One Compliment (http://en.wikipedia.org/wiki/Ones%27_complement) to Two Compliment…

    ik
    0
  13. Using flag field in Getopts

    Getopts offers very good features to process commandline arguments. As far as I could understand, I used it successfully. But it remains one unknown aspect for me. What…

    luciano de souza, Henry Vermaak
    2
  14. Yet more make file problems: make works, make install fails

    Still fighting makefiles with my db fpcunit listener. I can get it to compile with fpc make all However make install fails with Installation package fcl-extra for target…

    Reinier Olislagers, Frank Church, Michael Van Canneyt
    5
  15. fcl-db components missing from 2.6.0 (Lazarus winx64 bin inst)

    I'm trying to setup a build box on Win8 x64. I can't get Lazarus to compile my project. It fails because it uses postgresql, mysql and oracle units. The postgresql…

    Andrew Brunner, Koenraad Lelong
    1
  16. Delphi's anonymous functions in Free Pascal

    Does Free Pascal have anonymous functions that you can pass around, e.g. to a sort(compare : function, arr : array) function? If not, does anyone know any hacks to…

    Andrew Pennebaker, Alberto Narduzzi, Alexander Shishkin
    124
  17. Access to compiler's internal data structures

    First I'll say I know very little about the inner workings of an actual compiler. I took a course on formal language theory ages ago so I do have some understanding of…

    Kenneth Cochran, Bernd, Graeme Geldenhuys
    8
  18. Design Patterns Questions

    It has been some time since I have used FPC/Laz. I was looking for some information on 'observer pattern' the other day, and I found this article[1]. I notice that it…

    bsquared, Ewald, Graeme Geldenhuys
    10
  19. collection memory usage...

    i'm trying to figure out the best numbers to use for setting up a sorted collection... i'm just not understanding the numbers i'm getting from the heapdump unit at the…

    waldo kitty, Tomas Hajny
    3
  20. New FPCUnit db results writer: testdbwriter: request for... testing

    I've been working on a listener for FPCUnit that writes test results to a database. I intend to use it to run e.g. database tests on my Jenkins CI server whenever a new…

    Reinier Olislagers, Graeme Geldenhuys
    5
  21. releasing commercial components as PPU files

    Many Delphi components are sold as "full source code", or slightly cheaper (or as trial) as compiled *.DCU files for a specific Delphi version. Could this work with FPC…

    Graeme Geldenhuys, Florian Klämpfl, Howard Page-Clark
    18
  22. Subversion Client/Server Source

    I'm exploring the possibility adding support for version control in the Aurawin project. I'm needing resources to subversion client/server source to estimate how much…

    Andrew Brunner, Mark Morgan Lloyd, Unknown author
    6
  23. Failed cross compilation

    I am able to compile FPC 2.6.1 (rev 22778) under Ubuntu 11.04 32 bits. However cross compiling to win32 fails with the error: /usr/bin/ld: cannot find -lgcc I was able…

    patspiper, Marco van de Voort
    5
  24. Seems Delphi is moving to Java-style primitive types

    Well, kind-of... I don't know if C# also supports this (like Java). It probably does, because for the last few years, Delphi has just been copying whatever is in C#.…

    Graeme Geldenhuys, Chad Berchek, leledumbo
    5
  25. fpmake compiles the same unit multiple times

    I'm using FPC 2.6.0 and have a fpmake.pas program for fpGUI. To be honest I don't really use it, but to keep it up to date. Anyway, I noticed that if I do a 'fpmake…

    Graeme Geldenhuys, Jonas Maebe, Unknown author
    4
  26. fphttpclient close connection?

    i've noted that fphttpclient has a DefaultTimeout of 15 minutes... how can i close the connection after all data is received? the server is configured to keep-alive.…

    waldo kitty, Unknown author
    2
  27. set useragent in fphttpclient?

    how do i set the useragent field in a client built with fphttpclient? i'm starting with the example "httpget" and then moving on from there... i've tried various WAGs…

    waldo kitty, Michael Van Canneyt
    2
  28. Problems with valgrind

    I'm trying to use valgrind for the first time seriously to profile my app. See output from console below; Darius-Blaszyks-Mac-mini:fileio dariusblaszyk$ fpc -gv fileio.pp

    Darius Blaszyk, Jonas Maebe
    3
  29. Memory alignment with FPC

    Does FPC ensure the same memory alignment for records and objects over different platforms? If I want to be sure to have the same alignment must I use packed (with…

    Unknown author, Bernd, Darius Blaszyk
    20
  30. For Dimitrios Chr. Ioannidis: no fpc 2.6.1 seg fault loading dblib

    Responding to [fpc-devel] fpc 2.6.1 seg fault loading dblib as I think the subject is more appropriate to the fpc list.... (and I haven't subscribed to fpc-devel): Works…

    Reinier Olislagers, Dimitrios Chr. Ioannidis
    2
  31. Make distclean for X64 windows?

    After r22621 I decided to test make distclean. In my fpc directory, I have both i386_win32 and x64_win64 ppu units. Using make distclean, the i386 ppus seemed to have…

    Reinier Olislagers, Jonas Maebe
    3
  32. Lazarus 1.0.2 Release

    The Lazarus team is glad to announce the release of Lazarus 1.0.2. This is a bug fix release. Here is the list of changes:…

    Mattias Gaertner
    0
  33. creating msgpack port to Pascal

    I've started working on porting msgpack (messagepack.org) to native FreePascal code: (https://github.com/ik5/fp-msgpack). If you do not know it, then it's a way to move…

    ik
    0
  34. windres not required/provided by Debian 2.6.0 FPC

    While getting a Jenkins continuous integration server going.... On Debian 6 (Squeeze), I installed just enough packages to get a compiler and get a compile job going…

    Reinier Olislagers, Tomas Hajny, waldo kitty
    6
  35. Running FPC on a system that supports multiple architectures

    This is an "out of interest" question rather than being particularly important. I've managed to get my hands on an Itanium-based system for my collection, and find that…

    Mark Morgan Lloyd, Marco van de Voort, Sven Barth
    8
  36. FPC-2.6.1 daily build for Ubuntu Precise and Quantal, i386 and amd64

    I have set up a daily build of latest 2.6.1: https://code.launchpad.net/~prof7bit/+archive/fpc-2.6-latest ppa:prof7bit/fpc-2.6-latest (should update automatically from…

    Bernd
    0
  37. Replacing line in big text file

    I must modify some one line (mostly first line) in big text file (~10 000 lines). Doing this by loading and saving file using TStringList takes a long time (and amount…

    Krzysztof, Guionardo Furlan, Tomas Hajny
    4
  38. bunxh.inc(24, 52) Fatal: Syntax error, ":" expected but "identifier NSET" found

    I'm trying to build current 2.6.1 on Ubuntu Precise with build-dependency fpc-2.4.4 (because there exist no later version of fpc in precise) and gettting this error:…

    Bernd, Florian Klämpfl, Jonas Maebe
    8
  39. TListBox, scroll horizontally

    Is there a way to let the user shift the content of a TListBox horizontally so that he can view the part of long strings that is clipped on the right? If the number of…

    Jürgen Hestermann, Graeme Geldenhuys
    1
  40. Getting a resource file in the proper FPC directory: makefiles etc?

    Developing my database listener for fpcunit, I see 2 locations where the ppu files end up: <fpc>\packages\fcl-fpcunit\units\i386-win32\dbreporter.ppu…

    Reinier Olislagers
    2
  41. Using database-specific functionality with TSQLConnector

    For a fpcunit database test listener I'm implementing multi-connector support using TSQLConnector. This seems to work nicely. If the Firebird connector is chosen and the…

    Reinier Olislagers, LacaK, Unknown author
    3
  42. libusb header translation and OOP wrapper

    Hi! Some time ago somebody asked about USB support. I've now finished the libusb 1.0 header translation and object-oriented wrapper. Please find them at…

    Johann Glaser, Bernd, Christo
    18
  43. using macros

    I need to translate this: #define mymalloc(x,y) (x*)malloc((y)* sizeof(x)) Is it possible using macro's in FPC or do I need to convert it to a procedure? How would I…

    Unknown author, leledumbo, Lukasz Sokol
    6
  44. CThreads for linked C library?

    Hi! libusb(x) links to libpthread: $ ldd /lib/x86_64-linux-gnu/libusb-1.0.so.0 linux-vdso.so.1 => librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 libpthread.so.0 =>…

    Johann Glaser, Bernd
    1
  45. Editing XMP data in images

    I need to edit XMP data in images (at least tif, jpg). Maybe someone has already done it and can give me a hint? Mattias

    Mattias Gaertner, Bernd, Giuliano Colla
    3
  46. Help translate .SAVENV x86-64 assembly directive

    I'm translating porting a Delphi component that uses x86-64 assembly. So far, most of the asm code compiles and works fine. The only thing that i could not translate is…

    luiz americo pereira camara
    0
  47. Assigning pointer address

    I want to ask if casting an integer to a pointer is valid over all platforms. See below: p: PInteger; v: longint; [...] v := 4235423; p := PInteger(v); Of course, the…

    Unknown author, Reinier Olislagers, Tomas Hajny
    10