Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal

fpc-pascal · 2015-07

  1. another xml question

    For the app I'm writing, it will have 3 elements in the XML document it reads. The first 2 will only have one child element. The third one will be from 1 to whatever.…

    Chris Moody, Marc Santhoff
    3
  2. Interactive command recognition & mapping to program functions & other 'cli' features as a unit

    I tried piecing something like in $topic together, intended as an 'interactive' command interpreter for my program. (which will in time grow an 'embedded' web server and…

    Lukasz Sokol, Mark Morgan Lloyd
    6
  3. fpdoc HTML class hierarchy output contains duplicates

    Last night I came across something, which I think is a bug in fpdoc's HTML output. In recent times, fpdoc added a new output feature to the HTML generated - a class…

    Graeme Geldenhuys, Michael Van Canneyt
    3
  4. Interface syntax: Is possible don't use specialize in mode objfpc?

    Is there some way to write this: type generic ICloneable<T> = interface function Clone: T; end; ...using this sintaxe: type ICloneable<T> = interface function Clone: T;…

    Marcos Douglas, Florian Klämpfl, Graeme Geldenhuys
    53
  5. Calling overriden method using TMethod

    Hello, in the following sample: ======>>>====== ... type tm = procedure of object; var v1: tbar1; m1: tmethod; begin v1 := tbar2.create; try v1.go; ; m1.data:=v1;…

    Joao Morais, Sven Barth
    2
  6. Counting semaphore for free pascal

    A counting, or general, semaphore limits simultaneous access to a resource according to the number of permits you specify. On the other hand, a binary semaphore like a…

    kapibara, Martin Schreiber, Michael Schnell
    16
  7. fpcanvas and alpha-blending

    I'd like fpcanvas to support alpha-blending while drawing for example polygons, and I wonder what the best way would be. Maybe a new property AlphaBlend: Boolean to both…

    Felipe Monteiro de Carvalho, Michael Van Canneyt
    1
  8. a "bug" on the bug tracker

    The problem is not very serious, but I point it out here because no bug tracker category seems appropriate. In the header of the pages of bug tracker the Community…

    Yann Mérignac, Michael Van Canneyt
    1
  9. Modems etc.

    Has anybody used FPC to decode (and generate) FSK modem tones on a VOIP connection? Strictly V.21, don't need the complexity of QAM etc. Mark Morgan Lloyd markMLl .AT.…

    Mark Morgan Lloyd, Lukasz Sokol
    8
  10. Basic Sockets in FreePascal

    I have read on the wiki and documentation that FreePascal does not have any native support for socket handling, and that you need an external third party library to have…

    Coyo, Ewald, Mark Morgan Lloyd
    8
  11. Parsers and Unicode

    When writing something like a parser, does FPC have anything that exposes the properties of each Unicode codepoint? I'm thinking in particular of Unicode properties like…

    Mark Morgan Lloyd, Inoussa OUEDRAOGO, Michael Van Canneyt
    5
  12. access a google spreadsheet

    Hi! I'd like to sync an Android database using a google spreadsheet. I am aware of this code pascal-googleapis-oauth2 However I dont see a pascal implementation of…

    duilio foschi, Michael Van Canneyt
    3
  13. Error Message recording not yet supported

    Hello list. I got the "Message recordind not yet supported" error with 2.7.1 and 3.0.1 versions. 2.6.4 is fine. The error points to a zero-length line, between two class…

    Joao Morais, Jonas Maebe, Pierre Free Pascal
    6
  14. FPCUnit - how to register decorator tests?

    Please see attached test project. I have a decorator class and a test class. In the initialization section I call RegisterTestDecorator(), but when I run the test suite,…

    Graeme Geldenhuys
    1
  15. Please trim your quotes

    I'm not the list admin, but please be considerate and trim some quotes before you reply. Most email client support the ability to select a piece of text, then click the…

    Graeme Geldenhuys, Bart, Frederic Da Vitoria
    8
  16. Txt2FPDoc 0.8.4 released

    Txt2FPDoc is a command line tool that converts a documentation file written in human readable language to an XML file suitable for FPDoc. Txt2FPDoc tries to make the…

    Yann Mérignac, Michael Van Canneyt
    2
  17. Sorted map vs hash map ?

    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…

    Serguei TARASSOV, Michael Van Canneyt, Sven Barth
    4
  18. Sorted map vs hash map ?

    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)

    Serguei TARASSOV
    0
  19. TBGRABitmap / bounds

    bmp := TBGRABitmap.Create(1024,1024, clBlack); bmp.FontHeight := 30; bmp.FontAntialias := true; bmp.FontStyle := [fsBold]; bmp.TextOut( 0, 0, textonaovazio,…

    Philippe Lévi
    0
  20. Reading resources

    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…

    Juha Manninen, Bart
    2
  21. UniversalTimeToLocal(UT: TDateTime) / LocalTimeToUniversal(LT: TDateTime)

    I believe that since SVN commit 30628 UniversalTimeToLocal(UT: TDateTime) and LocalTimeToUniversal(LT: TDateTime) are reporting incorrect values. The multiple parameter…

    Michael Van Ham
    0
  22. XML from a site

    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…

    Chris Moody, leledumbo, Sven Barth
    2
  23. Automatic Reference Counting Classes

    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…

    Mazola Winstrol, Sven Barth
    1
  24. How can I get a typeinfo by address?

    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,…

    silvioprog, Graeme Geldenhuys, Michael Van Canneyt
    4
  25. will be work macro with name of the unit?

    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…

    ulrich, Michael Van Canneyt, Pierre Free Pascal
    7
  26. question with interfaces, hooks

    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…

    David Emerson, Graeme Geldenhuys, Sven Barth
    7
  27. Release of Lazarus 1.4.2

    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…

    Mattias Gaertner
    0
  28. lazarus template stm32

    I published here <https://github.com/Turro75/stm32lazarustemplate> a lazarus template for stm32f103 , it also contains several units for simple peripheral access. I…

    turro75, Michael Van Canneyt
    1
  29. How to use a static method as procedure variable?

    Consider the following sample: === begin code === type TMyProc = procedure(ABytes: array of Byte; out AOutput: AnsiString); TForm1 = class(TForm) Button1: TButton;…

    silvioprog, Ewald, Jonas Maebe
    4
  30. How to increase the range ckeck limit?

    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…

    silvioprog, DaWorm, Michael Van Canneyt
    3
  31. jsonrtti and integer arrays

    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…

    Felipe Monteiro de Carvalho, Michael Van Canneyt
    1
  32. Re: Delphi mode for new features?

    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…

    Serguei TARASSOV, Florian Klaempfl, Jonas Maebe
    2
  33. Re: fpc-pascal Digest, Vol 133, Issue 4

    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…

    Serguei TARASSOV
    1
  34. Error compiling fpc for ARM embedded

    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…

    Juan Duran, Jonas Maebe, Michael Ring
    2
  35. Re: Delphi mode for new features?

    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…

    Serguei TARASSOV, Graeme Geldenhuys, Jonas Maebe
    5
  36. TDBF licensing

    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…

    Graeme Geldenhuys, Adriaan van Os, Jonas Maebe
    12
  37. ActiveX units under Linux

    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…

    patspiper
    0
  38. Floor, Ceil and Int64

    Floor and Ceil (math unit) only return integers. Should there be an overloaded one for Int64 as well? B = 11111111111.111100000000000 Trunc(B) =…

    Bart, Peter
    2
  39. Delphi mode for new features?

    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…

    Serguei TARASSOV, Graeme Geldenhuys, Jonas Maebe
    2
  40. Help building FPC on armhf

    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...…

    Andrew Brunner, Jonas Maebe, Michael Ring
    9