fpc-pascal
Subscribe to this list Your subscription
Latest threads
- missing library name in external declaration in ascdef.inc1
There seems to be 'kernel32' missing in two functions in ascdef.inc of the rtl/win/wininc: FindFirstFileEx and FindFirstFileTransacted
- File Enumeration speed5
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…
- Getting UTC time etc.1
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…
- Generating templates with FPTemplate6
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…
- POSIX capabilities library1
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…
- FPC and IPv6, and BSD3
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…
- Dynamic messaging in Delphi8
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…
- UnicodeString comparison performance9
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…
- fcl-passrc package question about source file and line number info21
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…
- Nginx, FastCGI and /module/action vs ?module=module&action=action9
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…
- Inter-process communication, a cautionary tale20
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…
- Floating point discrepancy in x64 mode2
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…
- Cross-compiling Win64=>Win32 fails2
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…
- Database problem on Solaris SPARC32
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…
- Variable of class method type of function8
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).
- Cross platform signal handler?4
Do we have it? And if not, what's the available solution for windows? View this message in context:…
- How to write text to the console?3
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…
- Small and not instalable web server for a local Pascal CGI application4
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…
- Patch application2
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…
- BUG:flush the serial in FPC2.6.02
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,…
- JSON and UTF819
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…
- SIGTERM and thread3
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…
- Win64 SEH patch fixes some Firebird embedded bugs18
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…
- searching a programmer0
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…
- Reference in an articles to fpc0
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:…
- Define for -gh0
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:…
- How can a project determine if it's using cmem?5
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…
- ..installing XCode ...make sure not to deselect UNIX development support - TOO LATE1
- 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…
- StackTop and StackBottom are bogus in a Win32/64 Dll2
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…
- bug fpc-image3
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, …
