fpc-pascal
Subscribe to this list Your subscription
Latest threads
- Sorted map vs hash map ?4
I did a small test to compare performance of TFPGMap and TFPHashList in sequential and random accessing values by keys. http://arbinada.com/main/en/node/1511 The results…
- Sorted map vs hash map ?0
The problem was in the proper generation of random keys for testing. Now it looks better. I added statistics with different key's density ("normal" usage is unique keys)
- TBGRABitmap / bounds0
bmp := TBGRABitmap.Create(1024,1024, clBlack); bmp.FontHeight := 30; bmp.FontAntialias := true; bmp.FontStyle := [fsBold]; bmp.TextOut( 0, 0, textonaovazio,…
- Reading resources2
Lazarus examples folder has an application ResExplorer made by Alexey Lagunov. It does not work well, images and other resource contents are not shown. Only the resource…
- UniversalTimeToLocal(UT: TDateTime) / LocalTimeToUniversal(LT: TDateTime)0
I believe that since SVN commit 30628 UniversalTimeToLocal(UT: TDateTime) and LocalTimeToUniversal(LT: TDateTime) are reporting incorrect values. The multiple parameter…
- XML from a site2
Currently working on an app which needs to be able to read an XML from a website. Looking at the page at http://wiki.freepascal.org/XML_Tutorial it appears there is no…
- Automatic Reference Counting Classes1
Sometime ago Sven have reported to the list he was working in a proof of concept mechanism to implement ARC in FPC, a feature similar to the Objective-C's ARC. What's…
- How can I get a typeinfo by address?4
I need to call a method dynamically by its name over string and pass some parameters to it. OK, I don't know if it is possibly in the current version of the compiler,…
- will be work macro with name of the unit?7
I have this unit, but when I compile it, I get this error: Illegal unit name XXX_Parser. The unit is saved under dfm_rrparser.pas. Second question: Why not displayed…
- question with interfaces, hooks7
Hi list! I'm just starting in with interfaces, and am happy to see there is something similar to multiple inheritence available. But it seems to be limited in a way I…
- Release of Lazarus 1.4.20
The Lazarus team is glad to announce the release of Lazarus 1.4.2. This release was built with FPC 2.6.4, same as the previous release Lazarus 1.4.0. Here is the list of…
- lazarus template stm321
I published here <https://github.com/Turro75/stm32lazarustemplate> a lazarus template for stm32f103 , it also contains several units for simple peripheral access. I…
- How to use a static method as procedure variable?4
Consider the following sample: === begin code === type TMyProc = procedure(ABytes: array of Byte; out AOutput: AnsiString); TForm1 = class(TForm) Button1: TButton;…
- How to increase the range ckeck limit?3
Is there any compiler switch to increase the range limit check for operations like this?: {$R-} var r: SmallInt = 256; i : SmallInt; begin i := 10; if i in [0..r] then…
- jsonrtti and integer arrays1
I see that according to http://wiki.freepascal.org/Streaming_JSON one can use TStringList for an array of strings, but this seams to work only for writing JSON, is it…
- Re: Delphi mode for new features?2
This is another good example of divergence that complicates the life. Object type can be used as "advanced record" in FPC mode only. I'm agreed that it is good evolution…
- Re: fpc-pascal Digest, Vol 133, Issue 41
I would like to believe it but Embarcadero/Delphi announced the growth of users/client base 2 or 3 years ago, aren't they? Clearly, Delphi is more advanced in GUI…
- Error compiling fpc for ARM embedded2
today I updated fpc trunk to 31185. I am not able to compile ppcrossarm on this revision. It always worked with: make -j2 clean buildbase installbase CROSSINSTALL=1…
- Re: Delphi mode for new features?5
Sorry, I didn't understand your point. Out of Embarcadero subject, if 100% convergence is not possible why do divergence? Are you agreed that more FPC is compatible with…
- TDBF licensing12
Am I correct in understanding that TDBF included with FPC is a LGPL licensed component, the one that doesn't have the static linking exception. So I can't use it in any…
- ActiveX units under Linux0
Is it possible to make the importtl tool work under Linux? Is it just a matter of defining a bunch of Windows types? I use Linux for development and cross compile to…
- Floor, Ceil and Int642
Floor and Ceil (math unit) only return integers. Should there be an overloaded one for Int64 as well? B = 11111111111.111100000000000 Trunc(B) =…
- Delphi mode for new features?2
My question is inspired by some things asked here last weeks. As I see (may be mistaken), some _new_ Delphi features are available only in $MODE DELPHI. This way lead to…
- Help building FPC on armhf9
I recently installed fpc-2.6.4 on my Wandboard-Quad for production. I have fpc from svn but I get an error when I try to build. Compiling ARM Free Pascal Compiler...…
- Is there some reason why the linker cannot find crti.o, crtn.o etc?1
These messages come up almost always when I compile a project: Warning: "crti.o" not found, this will probably cause a linking failure templateSys.lpr(39,1) Warning:…
- Exception when trying to set a COM object property through OleVariant1
I am using FPC 3.1.1. I am playing with SAPI5. It almost works, but I am unable to set a Voice of SPVoice object through OleVariant. The following program works fine in…
- fpchmod(thefile, S_IRWXU) not for freeBSD ?1
Hello. This to advice that fpchmod(thefile, S_IRWXU) is not working with freeBSD. This because some const are missing for FreeBSD in FPC's RTL. But, thanks to Graeme,…
- Multipe path in TProcess.Environment ?6
Hello. If a TProcess runs a executable who needs a library, that does the trick => TProcess.Environment.Text := 'LD_PRELOAD='/the/directory/of/thelibrary.so' ; You may…
- PDF indexing8
does fpc (or lazarus) have a helper class for indexing the content of PDF files? I want to create a searchable full text index. Marc Marc Santhoff
- SizeInt documentation5
The documenation in http://www.freepascal.org/docs-html/rtl/system/sizeint.html says: ----------------------- SizeInt Signed integer type which fits for sizes Declaration
