Sign in Join

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

Mailing lists / fpc-pascal

fpc-pascal · 2011-11

  1. Delphi's anonymous functions in Free Pascal

    Does Free Pascal have anonymous functions that you can pass around, e.g. to a sort(compare : function, arr : array) function? If not, does anyone know any hacks to…

    Andrew Pennebaker, Alberto Narduzzi, Alexander Shishkin
    124
  2. Makeskel generation question

    I've run makeskel on ibconnection.pp. This declaration: protected ... function GetHandle : pointer; override; gets output as: <!-- function Visibility: protected -->…

    Reinier Olislagers, Graeme Geldenhuys, Michael Van Canneyt
    7
  3. Working Free Pascal android JNI example

    I've done a working Free Pascal android JNI example (with working .apk for current ARM-based Android device of the second device generation (because with VFPv3, so…

    Benjamin Jan Alexander Rosseaux, Felipe Monteiro de Carvalho, Florian Klämpfl
    42
  4. FPC for ARM

    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…

    Juha Manninen, Dariusz Mazur, Felipe Monteiro de Carvalho
    15
  5. CloseThread needed? still unclear

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

    Unknown author, Sven Barth
    5
  6. SQLdb :: Commit, Rollback, etc.

    Why TSQLTransaction.Commit calls CloseDataSets? Always that I call StartTransaction and Commit/Rollback and I have to reopen my DataSets?! Marcos Douglas

    Marcos Douglas, Ludo Brands, Sven Barth
    6
  7. CGI JSON RPC

    i surely need some help regarding the use of cgi with json rpc. I looked at the demo1 example and tested it with testcgi app from the command line. All was fine. Then i…

    Dimitrios Chr. Ioannidis, Unknown author
    1
  8. JNI crash

    This question is mostly directed to Benjamin since I think that few people work here with JNI, but I thought that the answer (if I get one) is of general usage. So,…

    Felipe Monteiro de Carvalho
    2
  9. Wireless configuration in Windows

    I am trying to access the Wireless interface of the Windows API. It seems that there is no support for these functions in Free Pascal so I defined them myself and…

    Jürgen Hestermann, Felipe Monteiro de Carvalho, Leonardo M. Ramé
    3
  10. fcl-web TFPHttpServer component problem

    I was testing the newish HTTP Server component located in fcl-web/src/fphttpserver.pp I simply created a form with Start/Stop button. The problem is, that once I call…

    Graeme Geldenhuys, Flávio Etrusco, Leonardo M. Ramé
    10
  11. dll for C#

    I have a requirement to create an API for application that C# can communicate with using dll (rather then REST). What is required by FPC to be able to create such DLL ?…

    ik, Elmar Haneke, Unknown author
    4
  12. OpenGL ES bitmap drawing

    This is a kind of "take a look at my code please" question. Normally I avoid that kind of question, but in this case my cluelessness is big enough that it would really…

    Felipe Monteiro de Carvalho, Jeppe Græsdal Johansen, Reimar Grabowski
    10
  13. use synaser to output data to com port

    I'm using synaser on win xp to receive data from a com port, via the prolific usb-serial driver. eg ser.RecvTerminated(6000,term_str); Can I send the same data out to…

    John Lee
    0
  14. The strange case of arm-linux-ld: skipping incompatible

    Quite a number of people already reported having problems with this in the lazarus forum when cross-compiling for Android and yesterday it was my turn to hit this. I…

    Felipe Monteiro de Carvalho, Jonas Maebe, Marco van de Voort
    7
  15. Free Pascal 2.6.0rc1 released

    We have placed the first release-candidate of the Free Pascal Compiler version 2.6.0 on our ftp-servers. You can help improve the upcoming 2.6.0 release by downloading…

    Marco van de Voort, Alexander Shishkin, Bernd
    40
  16. IBConnection blobsegmentsize irrelevant & performance

    The Firebird/Interbase ibconnection.pp code has this code in its SetParameters procedure to upload blobs in segments (BlobSegmentSize property is set to 80 on object…

    Reinier Olislagers, Graeme Geldenhuys, Michael Van Canneyt
    15
  17. Set Caption in TLabel

    I would like to change the caption on a TLabel in a program written in Lazarus. However, setting the Caption property directly produces a SIGSEGV. Any suggestions?

    Timothy Groves, Graeme Geldenhuys
    1
  18. WriteStr and int-range types (eg TColor)

    I know WriteStr can be used to get the names of enum: WriteStr(s, enumOne) But should/could it also work on sub-range types of int? Like TGraphicsColor =…

    Martin, Jonas Maebe
    1
  19. Fatal: internal error 200611083

    I've setup a WinXP system, and installed the latest released Lazarus 0.9.30 (from a setup download) that include the latest released FPC 2.4.4 I have a couple of…

    Graeme Geldenhuys, leledumbo
    2
  20. FPC And D-Bus

    I'm Trying to send notification using D-Bus Notify method. The thing is, that I do not understand how to properly use it. My current code:…

    ik, Ludo Brands
    5
  21. Class reference doubt

    in the following example The output is: cls class is TFoo TObj.create where I would expect: cls class is TFoo TObj.create TFoo.create ie the TFoo.constructor is not…

    Jesus Reyes, Dimitri Smits, Graeme Geldenhuys
    10
  22. FTP...2.4.4/bootstrap... is missing.

    Could please someone return the file i386-win32-ppc386.zip (or new version to compile FPC 2.5.1) to the FTP ftp://ftp.freepascal.org/pub/fpc/dist/2.4.4/bootstrap/ ? That…

    Marcos Douglas
    0
  23. Heap, Stack, HeapTrc and threads

    A recent query: Date: Mon, 21 Nov 2011 08:27:16 +0000 From: Mark Morgan Lloyd Subject: [fpc-pascal] Debugging ancient heap allocation seems not to have received a…

    Unknown author, Jonas Maebe, Marco van de Voort
    4
  24. Inheriting from generics specialized classes

    ... Sorry, forgot subject first.... I try to learn to use generics properly. First, this is a class definition without generics: TMyDerived = class(TObjectList) private…

    Juha Manninen, Sven Barth
    5
  25. (no subject)

    I try to learn to use generics properly. First, this is a class definition without generics: TMyDerived = class(TObjectList) private MyInt: integer; public constructor…

    Juha Manninen, Sven Barth
    1
  26. fpc can't compile project because a directory exists

    I just tried to compile a test.pp file inside my /tmp directory. FPC complained because there existed a /tmp/test/ directory!! Is this a normal or known limitation of…

    Graeme Geldenhuys, Marco van de Voort, Sven Barth
    2
  27. Generic syntax that compiles with FPC 2.4.4 but not with FPC 2.6.0-0.rc1

    Regarding this issue: http://bugs.freepascal.org/bug_view_advanced_page.php?bug_id=20713 The following does not compile any more with FPC 2.6.0-0.rc1. --- generic…

    Juha Manninen, Jonas Maebe
    3
  28. Firebird Connection documentation: suggestions? remarks?

    Please find attached my current version for the Interbase/Firebird connection documentation source. If the attachment gets deleted by the list or if you want to see the…

    Reinier Olislagers, Ludo Brands, Unknown author
    6
  29. Name of a var

    Is it possible to get information of the name of a var? For Example. var counter : longint; varname : shortstring; varname := nameofvar( counter ); The content of…

    Rainer Stratmann, Graeme Geldenhuys, Jeppe Græsdal Johansen
    30
  30. Indy example returns Runtime Error (211)

    I am trying to use an Indy example from stackoverflow - http://stackoverflow.com/questions/576538/delphi-how-to-get-all-local-ipsand I always get Runtime Error (211). It…

    Frank Church, Marco van de Voort
    3
  31. got 5 errors when install fpc to mac OS X

    I want to install freepascal into my new Macbook, the system is: Mac OS 10.7.2 I download fpc-2.4.4.intel-macosx.dmg and install it OK, then do svn co…

    enigma_chendu
    0
  32. FCL Web Combined Demo

    i wanted to check the combined demo so i set it up to my server at http://demo.artesoft.gr/combined . As i'm newbie to javascript can someone check to see why doesn't…

    Dimitrios Chr. Ioannidis, Felipe Monteiro de Carvalho, Marcos Douglas
    9
  33. Is there a bug in TStrings.Delimiter handling?

    adapterVals: TStringList adapterVals.Delimiter := ';'; adapterVals.DelimitedText := '192.168.1.2,00:0E:08:E0:7C:ED,Word Space'; adapterVals[0] = '192.168.1.2'…

    Frank Church, Graeme Geldenhuys, Marco van de Voort
    11
  34. Debugging ancient heap allocation

    Is it possible to use heaptrc to determine whether a pointer refers to a valid block on the heap, so that erroneous disposes can be silently ignored? Alternatively, is…

    Mark Morgan Lloyd
    0
  35. Compilation error in crosscompiling lNet to arm-linux

    Hi List. I get the following error when crosscompiling lNet to arm-linux. $ fpc -MObjFPC -Sgim -CX -O2 -Parm -gs -gl -vew -l -Fi../lib/sys -Fu../lib -Fu.…

    Torsten Bonde Christiansen, Jonas Maebe
    3
  36. Advantages of THTMLPageProducer

    What are the advantages of using THTMLPageProducer compared to directly generate HTML output (or via THTMLWriter)? View this message in context:…

    leledumbo
    0
  37. using functions from units & main programme

    I have a normal fpc unit, call it jim, with 2 functions fna & fnb . fnb uses internally fna. My main program, has a uses clause including jim, and also a _different_…

    John Lee, Alberto Narduzzi, Bart
    14
  38. More fun with dynamic arrays

    This program: Program TestMem ; Const ASize = 1000 ; Type DataA = Array Of Longint ; Var A : DataA ; Procedure Init(Out X : DataA ; Const N : Longint) ; Begin…

    Unknown author, Jürgen Hestermann, leledumbo
    4
  39. Convert unix timestamp to TDateTime

    I would like to convert a unix timestamp to TDateTime taking into account timezone and daylight savings. For example, timestamp: 1308666350 should be converted to:…

    Stathis Gkotsis, José Mejuto
    1
  40. JSON - RTTI streaming.

    For those of you that need JSON support: I have committed support for streaming published properties (properties for which RTTI is generated) from objects to JSON and…

    Michael Van Canneyt, Brian Winfrey, Burkhard Carstens
    12
  41. pchar with more than 255 characters

    procedure getchars( p : pchar ); var l : longint; begin l := length( p ); end; If calling getchars with chars longer than 255 l is always 255. For example: getchars(…

    Rainer Stratmann, Bart, Felipe Monteiro de Carvalho
    26
  42. Problems running fpcdocs make all

    trying to get pdf output On Debian Squeeze x64, with Free Pascal Compiler version 2.4.4-3 [2011/10/26] for x86_64 fpcdocs from trunk sudo aptitude install texlive tex4ht…

    Reinier Olislagers
    0
  43. various ways of passing a class instance as a parameter

    What exactly is the difference (if any) between the parameter modifier when you pass a class instance to a procedure? In the example below, I can define foo() as…

    Graeme Geldenhuys, Alexander Shishkin, Martin Schreiber
    6
  44. parent class as a parameter type

    Since 2.6.0, when you write something like this: procedure foo(AClass : TStrings); foo(MyStringList); // Will return an error that TStrings is expected ... I can not use…

    ik, Bart, cobines
    16
  45. Setting environment variables on Unix/Linux?

    It seems FPC allows one to retrieve environment variables on Linux/Unix (GetEnvironmentVariable) but not to set them. Is that correct? Some digging: Setting environment…

    Reinier Olislagers, Unknown author
    2
  46. Makeskel & how to add Firebird connection documentation?

    I want to document packages/fcl-db/src/sqldb/interbase/ibconnection.pp So I run this to get started: makeskel --disable-private --emit-class-separator --update…

    Reinier Olislagers, Graeme Geldenhuys, Unknown author
    8
  47. SQLDB Firebird port other than 3050

    This is probably my confused week, but I couldn't find any documentation. How do I specify the port number when connecting to Firebird/Interbase databases with sqldb on…

    Reinier Olislagers, Ludo Brands, Unknown author
    3
  48. Makeskel error or error behind keyboard?

    Trying to start documenting fpXMLXSDExport: <some other directory>c:\development\fpc\bin\i386-win32\makeskel --disable-private --emit-class-separator --update…

    Reinier Olislagers, Sven Barth, Unknown author
    3
  49. [OT] AI programming challenge includes FreePascal

    In case you didn't know and are interested, there is an online artificial intelligence competition [1] that lets you program an ant colony that fights other colonies.…

    Reinier Olislagers
    0
  50. Compilation time

    Does more cpu cores mean less compile time? I am searching for a new computer, which is the best cpu? Is it possible to write the compile time in the Lazarus output…

    Rainer Stratmann, Florian Klämpfl, Graeme Geldenhuys
    3