fpc-pascal · 2011-11
- Delphi's anonymous functions in Free Pascal124
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…
- Makeskel generation question7
I've run makeskel on ibconnection.pp. This declaration: protected ... function GetHandle : pointer; override; gets output as: <!-- function Visibility: protected -->…
- Working Free Pascal android JNI example42
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…
- 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…
- 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.…
- SQLdb :: Commit, Rollback, etc.6
Why TSQLTransaction.Commit calls CloseDataSets? Always that I call StartTransaction and Commit/Rollback and I have to reopen my DataSets?! Marcos Douglas
- CGI JSON RPC1
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…
- JNI crash2
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,…
- Wireless configuration in Windows3
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…
- fcl-web TFPHttpServer component problem10
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…
- dll for C#4
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 ?…
- OpenGL ES bitmap drawing10
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…
- use synaser to output data to com port0
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…
- The strange case of arm-linux-ld: skipping incompatible7
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…
- Free Pascal 2.6.0rc1 released40
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…
- IBConnection blobsegmentsize irrelevant & performance15
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…
- Set Caption in TLabel1
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?
- WriteStr and int-range types (eg TColor)1
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 =…
- Fatal: internal error 2006110832
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…
- FPC And D-Bus5
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:…
- Class reference doubt10
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…
- FTP...2.4.4/bootstrap... is missing.0
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…
- Heap, Stack, HeapTrc and threads4
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…
- Inheriting from generics specialized classes5
... Sorry, forgot subject first.... I try to learn to use generics properly. First, this is a class definition without generics: TMyDerived = class(TObjectList) private…
- (no subject)1
I try to learn to use generics properly. First, this is a class definition without generics: TMyDerived = class(TObjectList) private MyInt: integer; public constructor…
- fpc can't compile project because a directory exists2
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…
- Generic syntax that compiles with FPC 2.4.4 but not with FPC 2.6.0-0.rc13
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…
- Firebird Connection documentation: suggestions? remarks?6
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…
- Name of a var30
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…
- Indy example returns Runtime Error (211)3
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…
- got 5 errors when install fpc to mac OS X0
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…
- FCL Web Combined Demo9
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…
- Is there a bug in TStrings.Delimiter handling?11
adapterVals: TStringList adapterVals.Delimiter := ';'; adapterVals.DelimitedText := '192.168.1.2,00:0E:08:E0:7C:ED,Word Space'; adapterVals[0] = '192.168.1.2'…
- Debugging ancient heap allocation0
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…
- Compilation error in crosscompiling lNet to arm-linux3
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.…
- Advantages of THTMLPageProducer0
What are the advantages of using THTMLPageProducer compared to directly generate HTML output (or via THTMLWriter)? View this message in context:…
- using functions from units & main programme14
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_…
- More fun with dynamic arrays4
This program: Program TestMem ; Const ASize = 1000 ; Type DataA = Array Of Longint ; Var A : DataA ; Procedure Init(Out X : DataA ; Const N : Longint) ; Begin…
- Convert unix timestamp to TDateTime1
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:…
- JSON - RTTI streaming.12
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…
- pchar with more than 255 characters26
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(…
- Problems running fpcdocs make all0
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…
- various ways of passing a class instance as a parameter6
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…
- parent class as a parameter type16
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…
- Setting environment variables on Unix/Linux?2
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…
- Makeskel & how to add Firebird connection documentation?8
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…
- SQLDB Firebird port other than 30503
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…
- Makeskel error or error behind keyboard?3
Trying to start documenting fpXMLXSDExport: <some other directory>c:\development\fpc\bin\i386-win32\makeskel --disable-private --emit-class-separator --update…
- [OT] AI programming challenge includes FreePascal0
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.…
- Compilation time3
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…
