fpc-pascal · 2012-10
- TurboPower FlashFiler for Free Pascal18
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
- Automatically exporting C++ API using SWIG??26
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.…
- Memoryleak in SQLite3db.TSqlite?4
I wrote a simple test program with SQLite3db program SqliteMemoryLeak; {$mode objfpc}{$H+} uses HeapTrc, {$IFDEF UNIX}{$IFDEF UseCThreads}CThreads,{$ENDIF}{$ENDIF}…
- Xcode17
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…
- Editing resource of executable22
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…
- Why opening a file for write fails in fpc 2.6?21
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…
- Best way to transfer data between applications?21
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…
- Error compiling android example: can't locate arm-linux-as0
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:…
- problems compiling FPC44
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…
- OT: Creating a site to contain Pascal units, libraries etc5
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…
- Range check error while evaluating constants5
I have the following function: function OneToTwoComplement(AValue: QWord): QWord; begin Result := (AValue xor $FFFFFFFFFFFFFFFF) + 1; end; What am I missing here that…
- Two and one compliment converting functions0
Does FPC contain any functions to convert between One Compliment (http://en.wikipedia.org/wiki/Ones%27_complement) to Two Compliment…
- Using flag field in Getopts2
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…
- Yet more make file problems: make works, make install fails5
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…
- fcl-db components missing from 2.6.0 (Lazarus winx64 bin inst)1
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…
- Delphi's anonymous functions in Free Pascal124
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…
- Access to compiler's internal data structures8
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…
- Design Patterns Questions10
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…
- collection memory usage...3
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…
- New FPCUnit db results writer: testdbwriter: request for... testing5
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…
- releasing commercial components as PPU files18
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…
- Subversion Client/Server Source6
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…
- Failed cross compilation5
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…
- Seems Delphi is moving to Java-style primitive types5
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#.…
- fpmake compiles the same unit multiple times4
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…
- fphttpclient close connection?2
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.…
- set useragent in fphttpclient?2
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…
- Problems with valgrind3
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
- Memory alignment with FPC20
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…
- For Dimitrios Chr. Ioannidis: no fpc 2.6.1 seg fault loading dblib2
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…
- Make distclean for X64 windows?3
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…
- Lazarus 1.0.2 Release0
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:…
- creating msgpack port to Pascal0
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…
- windres not required/provided by Debian 2.6.0 FPC6
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…
- Running FPC on a system that supports multiple architectures8
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…
- FPC-2.6.1 daily build for Ubuntu Precise and Quantal, i386 and amd640
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…
- Replacing line in big text file4
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…
- bunxh.inc(24, 52) Fatal: Syntax error, ":" expected but "identifier NSET" found8
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:…
- TListBox, scroll horizontally1
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…
- Getting a resource file in the proper FPC directory: makefiles etc?2
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…
- Using database-specific functionality with TSQLConnector3
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…
- libusb header translation and OOP wrapper18
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…
- using macros6
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…
- CThreads for linked C library?1
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 =>…
- Editing XMP data in images3
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
- Help translate .SAVENV x86-64 assembly directive0
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…
- Assigning pointer address10
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…
