fpc-pascal
Subscribe to this list Your subscription
Latest threads
- fcl-stl in 2.6.2 packaged release (not source code)6
Recently someone asked me a question which I answer using fcl-stl units, however the OP who uses 2.6.2 installed using the installer said the compiler can't find those…
- GetCurrentDir7
On one of my Linux machines GetCurrentDir returns '', when the working directory is a samba share. Is this a feature or a bug? Mattias
- SqlDB vs Zeos: TDataset.FieldDefs[].Size3
I have a Firebird database living on a FreeBSD server. I did not specify a charset when the database was created. I have a table with a string field defined as…
- The 2.6.2 RPM and Deb archives are still in preparation0
Some words about me: I'm a pascalist for now more than 25 years. I developped many embedded applications, but I don't feel well putting the hands on the compiler...…
- TSocketServer and DoDisconnect event?1
Well, the TSocketServer has the event DoConnect, but, how to I know when a client is disconnected? (eg, when I kill a client with Ctrl+Alt+Del) I find a event such as…
- LLVM (again)6
I have read the discussions about FPC using LLVM and the reasons against it (which I fully understand and support). But a friend of mine called my attention to this:…
- string memory management5
I'm studying how pascal manages strings. I wrote a simple test program: program stringtest; {$mode objfpc}{$H+} uses Classes, sysutils; function test: PString; var s :…
- using mtprocs3
I have a program that captures xml data every 2-6 secs from a power sensor, win , xp. Would like to use freearc ebvery minute or so to compress the previous data in…
- compiling mtprocs3
Got mtprocs from lazurus svn, compiles ok with win 2.6.2 but not with 2.7.1 2.7.1-r1:23421 [2013/01/18]--Free Pascal Compiler version 2.7.1-r1:23421 [2013/01/18] for i386
- Yet again Objects auto destruction1
I think it is not the first time this topic was opened, but still think we need when using object to have automatically destructor called by compiler when the object…
- How to use TThread?5
I tried to use TThread in a small sample, but it don't works. The code is very simple, and I'm sending it in attached. Silvio Clécio My public projects -…
- TBufDataset error2
Hi Guys. Got something funny using the TBufDataSet FCL component. One is dropped onto a TForm. I fill in some TFields (double click on the component image) and give them…
- Bending System.IndexByte to my will!!?2
(FPC 2.6.2 x86, trunk x64, on Windows; found similar behaviour on Linux x64) Busy getting DBase III memo support correct ;) In fcl-db\src\dbase\dbf_common.pas we find…
- socket timeout9
How can I set the connection and read/write timeout when using socket in free pascal? I like the way it works now (blocking, NOT async), but the timeout is a bit too…
- Fpcup for FreeBSD: feedback welcome0
Just uploaded a new version of fpcup (automatic FPC+Lazarus svn downloader/installer for both stable and trunk) at https://bitbucket.org/reiniero/fpcup/downloads I…
- Correct way for partial generic specialization6
This code: {$mode objfpc}{$H+} type generic TType1<A,B> = class end; generic TType2 = specialize TType1<A,String>; begin end. fails: x.pas(5,42) Error: Identifier not…
- Same code from LCL project throw error in console application4
I have strange issue. Simple mpg123 player which work fine on LCL project, on console application throw floating error in line "mh_e := mpg123_read(mh, @outbuf[0],…
- Is this a bug?1
I just wanted to get some opinions on this as to whether this is a bug. Generics in 2.7.x trunk allows units which use a generic class defined in another unit can access…
- Array assignment, and not-a-number7
I was having a bit of fun earlier while waiting for a call. Am I correct in believing that something like type t1= array of integer; var a1: t1; x: integer; a1 :=…
- Warnings crti.o and crtn.o not found10
I just updated my FPC 2.7.1 from revision 23807 to 24236 and for every project I compile I now get warnings that crti.o and crtn.o are not found. Does anyone know why I…
- TDBF: Initial Visual FoxPro support2
I've been working on the tdbf code. It had rudimentary support for both Visual Foxpro and older Foxpro file formats, but mixed them up a bit. I split out the distinction…
- Free member after inherited Destroy;1
Is it safe to free memeber object after call inherited in Destroy? in Delphi/ObjFPC modes type TMyObject=class(TObject) FMyMember:TmyMemberObject; .... destructor…
- What's the status of RTL and IsMultiThreaded := True?6
I did some Googling earlier tonight regarding using the RTL and threads without creating a TThread class. I found some older results from this mailing list such as...…
- 64 bit cross binutils on a 32 bit OS17
Is it possible to build cross binutils to produce win 64 bit files on a 32 bit Linux OS (Ubuntu 32 bit)? If I set target=x86_64-cygwin, the error is: 'BFD does not…
- Why does this work?3
As a certified high-level coder with a fear for anything that smells like pointers and bits I hesitated to post this as the answer may well be: figure it out yourself,…
- Difference between fpc 2.6.2 rc1 and fpc 2.6.2 final2
Somehow i missed the final release of 2.6.2 So i'm still using fpc 2.6.2rc1 Are there any difference between those two versions? Luiz
- Re: fpc-pascal Digest, Vol 106, Issue 260
Am 11.04.2013 um 12:00 schrieb I was successful with target=x86_64-w64-mingw32
- HMAC_SHA1 and FPC56
How to get HMAC_SHA1 using native functions of FPC? HMAC_SHA1: http://en.wikipedia.org/wiki/Hash-based_message_authentication_code#Examples_of_HMAC_.28MD5.2C_SHA1.2C_SHA2…
- Generics - how to rewrite TOjectDictionary13
It was many years ago i tried fpc/lazarus so i'm not up to speed with eveything. At this moment I'm trying to rewrite a piece of software from delphi to fpc/laz and i'm…
- Portable (or at least working) version of GetDomainName()?16
How best to get the (internet-style) domain name of a system? GetDomainName() appears to be returning "(none)" here on x86 Linux. Mark Morgan Lloyd markMLl .AT.…
