fpc-pascal · 2011-12
- fpGUI Toolkit v0.8 release for FPC 2.4.4 & 2.6.0-rc7
I'm glad to announce the next release of fpGUI Toolkit. fpGUI v0.8 ---------- An archived source download and pre-built binaries for DocView (fpGUI's Documentation…
- fpc 2.6.0-rc1 for arm-embedded25
I had some problems making or using a compiler for arm-embedded so I tried the new 2.6.0-rc1. Compiling with : make clean buildbase installbase CROSSINSTALL=1…
- TFPHTTPClient Post works with jetty, fails with tomcat9
For some reason TFPHTTPClient.Post hangs when accessing a "solr" server over "tomcat". It works with "solr" over "jetty". "curl" works fine with both, so I guess the…
- using exceptions21
Exceptions like the name suggested, is to mark something that you are not suppose to expect. For example while getting a data something went wrong, like disconnection,…
- -OoASMCSE7
[actual question is in the last paragraph of this post] I recently stumbled over an old (closed) bug in the bug tracker where the solution was to remove ASMCSE from O3,…
- Finished full JVM Android application7
Hello together! Today I've finished my first JVM Android application. This could as well be the first (or at least one of the first) complete JVM Android app written in…
- compiling the compiler from within the Lazarus IDE2
I have never ever tried to hack on the compiler itself before so this is probably a stupid question (and probably not the last one) but I assume there is a simple answer:
- TFPList and the ForEachCall0
could somebody show me an example of how to use TFPList and the ForEachCall? Or point me to a documentation where the proper syntax is explained. I don't know how to…
- [OFF-TOPIC] Nephelae open source small business software0
for some reasons i started an open source small business software named Nephelae. I setup the source code repository, mailing lists, trackers etc at…
- GCC attributes when binding code0
I found the following code: /* this is a special 64bit data type that is 8-byte aligned */ #define aligned_u64 u_int64_t __attribute__((aligned(8))) And few other…
- operator in3
Why operator 'in' has a limit? procedure TForm1.Button1Click(Sender: TObject); var t,r1,r2: Integer; begin t := 359; r1 := 252; r2 := 253; if r2 in [r1..t-1] then //…
- How to create this "union" ?7
I'm trying to translate the following to Pascal: ------------ struct xt_option_call { const char *arg, *ext_name; const struct xt_option_entry *entry; void *data;…
- Forward declarations15
Can anyone think of a situation in which you would *have* to use forward declared functions? I'm trying to come up with an example for such for my book, and I am…
- Map of values to array of records4
how can I create two level map where value is array of records? These records are constant - I don't need to compute them or anything. I'm quite new to pascal and for…
- iptables rules unit for FPC1
Have anyone know of any open source iptables based rule generators written in FPC or any other Pascal compiler ? Thanks and marry Christmastime/Hanukkah , Ido
- LGPL rtl4
I think all freepascal people have a misunderstanding of LGPL. If you statically link the lgpl code into your EXE, your exe is the module under lgpl now. Therefore all…
- where are the sources for rtl.chm, fcl.chm ref.chm etc.?4
I am trying to build the chm help files (rtl, fcl, and ref) from source (to use them with Lazarus) and cannot find find them anywhere. I have found downloads of ready…
- Meego Harmattan (Nokia N9) and fpc1
Successfully created cross arm with 2.4.5 (console apps works fine on this device), but have problems with lazarus projects.…
- Darwin i386 socket polling4
I'm needing to figure out how socket signaling mechanisms work under darwin. Windows and Linux work, Darwin however does not support ePoll. Anyone have any experience…
- FPC for ARM15
Hi Is FPC 2.2.2 really the latest native release for ARM processors? I guess it can build the more recent versions. (?) In school we have an interesting project…
- Contributed units on freepascal site7
The contributed unit section on the freepascal site does not work anymore. Can someone please have a look and fix this? Is there an alternative link available? Regards,…
- Timer in X1136
Does anyone know what would be the solution for implementing timer support in a X11 toolkit? I already have TTimer support implemented for LCL-CustomDrawn-Windows, Cocoa…
- inline and other modifiers7
I have the following: unit foo; {$mode objfpc}{$H+} interface uses foobar; function BitCnt(ABitmap: TBitBoard): Integer; implementation {$ifdef cpu386} function…
- alias a function + overload 'in'9
two little questions 1. Is it possible to make an alias to a function ... so rather than just re-calling with the same parameters, it's actually the same thing? like the…
- FpGetRLimit and FpSetRLimit reference an undefined symbol3
When I attempt to use fpgetrlimit and fpsetrlimit from the baseunix unit (see http://www.freepascal.org/docs-html/rtl/baseunix/fpgetrlimit.html and …
- Testing applications with FPCUnit17
Navigating in FPC source codes, I found fpcunit. It's really wonderful. With the tTestCase class, we can generate a report with the success or the failure of our tests.…
- debian control files for fpc4
I'd like to roll my own fpc-2.4.4 .deb for in-house development The lazarus sources seem to include a debian directory with all the control files, which is wonderful!…
- News from MSEide+MSEgui2
MSEide+MSEgui 2.8rc1 for FPC 2.6 has been released: http://sourceforge.net/projects/mseide-msegui/files/mseide-msegui/2.8rc1/ There is also a new beta for MSEgit:…
- possible json parser memory leak6
I'm using FPC 2.6 (rc) x86_64 on Linux with JSONParser. I've written the following code: ----------------------- uses fpjson, jsonparser, SysUtils, classes; var parser …
- Memory leak5
While dabbling with pointers, I came across a memleak for which I don't understand why it happens. Hopefully someone can help me with it. mytest^.name :=…
- Generics and Mac3
I used generics in Lazarus code base for the first time, in TreeFilter component: TTreeNodeList = specialize TFPGList<TTreeNode>; and TBranchList = specialize…
- JSON Dataset in FCL-DB.8
I just committed a JSON dataset in fcl-db. This is a dataset which stores its data in JSON objects (as in fpjson) in memory. The records are in a JSON array, each record…
- initializing pointer values3
On implementing a linked list I hit to some unexpected (doesn't mean incorrect though) behaviour. ptest = ^test; test = record p: pointer; end; new(mytest); When I…
- CPU registers and function calls, unclear explanation in the docs2
The programmer's guide says in chapter 6.3 that when using "register" convention then it does not save any registers. A very old version of this document even said…
- Distributing unit object files2
I'm needing to figure out how best to "close" or "seal" units so that I can use the compiled unit object files instead of the actual unit files. The problem is that the…
- Re: How to poll for a byte in Input?3
Thank you very much. I will try your approach, as I'm interested in the piping. I also did some experimenting with SetConsoleMode, and also with SetFileAttributes, and…
- PPU checksum issue5
I'm trying to rebuild Lazarus with some components, and having the following error message on an FPC based unit: PPU Loading…
- nostackframe -- possible to create faulty code?4
Is it thoretically possible to make an otherwise perfectly working program crash with access violation only because I used the nostackframe modifier on a nested…
- UTF-16 strings0
When targeting not-Windows (i.e. predominantly Linux but possibly other unixes) and wanting to do character-by-character parsing of 16-bit Unicode characters, what's the…
- Shared libries16
Hi. I'm trying to create a shared library (under linux) and I not sure what the difference between the modifier *export* and the section *exports* is? Or perhaps when to…
- Sorting an open unidimensional array2
I want to sort an open unidimensional array of integers from the minimum to the maximum and from the maximum to the minimum. Is there a standard unit providing this kind…
- IInterface type value and the "as" keyword2
after a long pause I'm trying to revive some code which I didn't touch as long as early this year. At that time it compiled OK with trunk FPC (I believe version 2.5.1).…
- "Free Pascal Programmer's Guide" - where is the latest version?5
This document: http://www.freepascal.org/docs-html/prog/prog.html is for the stable version 2.4 Does anybody know where I can find the development version of it (2.5.1…
- CloseThread needed? still unclear5
While testing an updated version of nYume (aservia) I found that the program is leaking thread handles on Ms Windows. The program uses BeginThread and EndThread calls.…
- Fatal: Internal error 200109227... and some boolean questions1
Linux/i386, 2_6 branch var a : QWord; x : QWordBool; y : QWordBool; begin a := QWord($ffff000000000000); x := QWordBool(a); y := not x; fpwinglet.lpr(21,3) Fatal:…
- Readline substitute8
Hi! I want to equip a program with a command line and therefore want a powerful and user-friendly input prompt. Currently I use ReadLn(CmdLine); which is not as…
- Re: How to poll for a byte in Input?2
I have found and tried WaitForSingleObject, using the following syntax: ThereIsACharacterToRead := WaitForSingleObject(StdInputHandle,0) = 0; While…
- Why is Random(255) some 529x slower compared to Delphi 7?69
I'm busy working on some of the remaining unit tests for the tiOPF project that doesn't run 100% to my satisfaction yet under FPC (compared to Delphi 7). One of the…
- How to poll for a byte in Input?9
I'm trying to poll the input stream to see whether there is a new character available, without blocking my software. I've tried "Read" and "THandleStream.ReadByte" but…
- Re: Why is Random(255) some 529x slower compared to Delphi 7?3
only those that take their jobs seriously and read help/manuals iso assuming? :-) I actually doubt that that codesnippet does any real encryption. From what I understand…
