fpc-pascal · 2012-07
- Initialization of class field7
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…
- Byte ordering in IP4 and IP6 addresses0
If preparing an address returned by fpgetpeername() for display or logging, should I be using HostAddrToStr() or NetAddrToStr()? Is anybody aware that HostAddrToStr()…
- [OT] GPL Lisence help7
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…
- 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, …
- Should FCL documentation be splitted?5
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…
- Longstrings12
How to put longstrings globally on? I tried with {$h+} in project compiler settings (other) with no effect.
- Custom operators for non-record types17
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…
- Wiki down ?1
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…
- Manually handling all exceptions0
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…
