[fpc-devel] Linux errors units

2018-01-18 Thread Desmond Coertzen
Hi guys, I'm porting some old code away from libc. I'm looking for the unit that contains the linux error code enums, like EBADFD, EAGAIN, EINTR, etc Which non-libc unit do I use for these? Platform: ppcarm I already have BaseUnix, Linux, termio, errors, but the linux Exxx constants are not in

Re: [fpc-devel] PIOFile Arm Linux

2017-10-17 Thread Desmond Coertzen
TProcess rocks. I stress tested on a pi3 with large gulps using TProcess.Output.Read Thank you. On Fri, Oct 13, 2017 at 2:22 PM, Marco van de Voort <mar...@stack.nl> wrote: > In our previous episode, Desmond Coertzen said: > > > > Anyone knows which unit I need to get t

[fpc-devel] PIOFile Arm Linux

2017-10-13 Thread Desmond Coertzen
Hi there, Anyone knows which unit I need to get to PIOFILE and related functions for popen, pclose etc to do piping? It's a libc thing i'm looking for, but on arm linux (raspbian) with fpc from package manager. Thanks ___ fpc-devel maillist -

[fpc-devel] Wiki language

2010-08-20 Thread Desmond Coertzen
Hello, Who did the Afrikaans (AF) section of the wiki pages? Graeme was that you? I would like to contribute translations to any outstanding translations. How do I go about this? ___ fpc-devel maillist - fpc-devel@lists.freepascal.org

[fpc-devel] lnet SSL

2009-11-26 Thread Desmond Coertzen
Has anyone established SSL connections lnet library? The HTTP get example that comes with lnet fails with access violation when requesting https url. Has anyone some example how to use the sslsession or socket by itself to establish ssl connection? Thanks

[fpc-devel] Bug 14937

2009-10-29 Thread Desmond Coertzen
Please kill this bug, the real issue is on bug 14936. The first issue issue timed out when attaching the sample file. The sample was was over 2MB, so I removed the binaries and sent only the code. Afterwards, bug 14937 also came through. I don't know why, I think it the first operation just

Re: [fpc-devel] GTK vs GTK2

2009-10-23 Thread Desmond Coertzen
More testing... I think the problem here is not the speed at which i can splash stuff onto a canvas (the difference between GTk1 vs GTk2 is very little), but rather the rate at which the OnPaint events are called with the TCustomControl class when using with GTk2 There seems to be a delay of at

[fpc-devel] GTK vs GTK2

2009-10-19 Thread Desmond Coertzen
I have a stupid question, but I can not for the life of me figure this out quickly: Recent official release of lazarus was 0.9.28, it is based on fpc 2.2.4-0. The default widget se is gtk2. I'm trying to do a test where i am compiling against gtk1, but i get a compiler error when trying to go

Re: [fpc-devel] GTK vs GTK2

2009-10-19 Thread Desmond Coertzen
On Mon, Oct 19, 2009 at 4:38 PM, Graeme Geldenhuys graemeg.li...@gmail.comwrote: 2009/10/19 Desmond Coertzen patrolliekapt...@gmail.com: The default widget se is gtk2. I'm trying to do a test where i am compiling against gtk1, but i get a compiler error when trying to go back to gtk1

[fpc-devel] C++ source in fpc

2009-09-14 Thread Desmond Coertzen
I need some advice: I have a few c++ source files containing conversion functions. Is it at all possible to compile them into my fpc project? I imagine I have seen this in kylix 3. Is this possible with fpc? Am I under the influence of a pipe dream?

Re: [fpc-devel] comparing methods

2009-09-10 Thread Desmond Coertzen
I have done some horrible code where I needed to know the following: If TSomeProc = procedure(), then is it easy to determine or set entry vector of ThatProc: TSomeProc by stating ThatProc := @ProcWhereTheCodeLives_InTheCodeSegment; It gets more difficult when you work with TSomeClassProc =

Re: [fpc-devel] comparing methods

2009-09-10 Thread Desmond Coertzen
(MyClass.MyMethod)).Code)); writeln(hexStr(TMethod(TMyEvent(MyClass.MyMethod)).Data)); FreeAndNil(MyClass); end. On Thu, Sep 10, 2009 at 2:56 PM, Peter Vreman pe...@cooldown.xs4all.nlwrote: On Thu, 10 Sep 2009 14:25:26 +, Desmond Coertzen patrolliekapt...@gmail.com wrote: I have done

Re: [fpc-devel] Firebird shared library name change

2009-08-24 Thread Desmond Coertzen
Hi Graeme It seems the SqlDB + Firebird code only looks for 'libgds.so' and 'libfbclient.so' giving the following error at runtime... With my last production experience with Firebird, libgds.so was the stubs to the old Interbase lib where Firebird derived from. libfbclient.so.x is backwards

Re: [fpc-devel] Questions regarding PostgreSQL support in SqlDB

2009-08-17 Thread Desmond Coertzen
Hi Graeme, The libpq_api.pas that ships with FPC implements all the functions from the version 3 native api on windows and linux. This .so/.dll is backwards compatible even with the latest versions of postgresql server. I tried TPQConnection in a production environment on a server-side deamon,

Re: [fpc-devel] Questions regarding PostgreSQL support in SqlDB

2009-08-17 Thread Desmond Coertzen
to other units to compile is in an svn external under lib directory. The code is extremely ugly. Good luck. On Mon, Aug 17, 2009 at 1:30 PM, Graeme Geldenhuys grae...@opensoft.homeip.net wrote: Desmond Coertzen wrote: I tried TPQConnection in a production environment on a server-side deamon

Re: [fpc-devel] FPC micro controller

2009-07-31 Thread Desmond Coertzen
will work, I can only suggest sticking with pascal as close as possible. It's a fantastic language. On Thu, Jul 30, 2009 at 10:15 AM, Marco van de Voort mar...@stack.nlwrote: In our previous episode, Desmond Coertzen said: No use for OS, just for smaller MCU's that are bit accessible

Re: [fpc-devel] FPC micro controller

2009-07-31 Thread Desmond Coertzen
It's big endian on big endian architectures. Which arhictecture(s) does big endian? On Fri, Jul 31, 2009 at 11:29 AM, Jonas Maebe jonas.ma...@elis.ugent.bewrote: On 31 Jul 2009, at 13:21, Desmond Coertzen wrote: As far as endian is concerned: Integer types i found always to be little

Re: [fpc-devel] FPC micro controller

2009-07-30 Thread Desmond Coertzen
wiki On Thu, Jul 30, 2009 at 8:04 AM, Michael Schnell mschn...@lumino.de wrote: Desmond Coertzen wrote: Is this correct for application? While I know that you in fact can use bitpacked records to access singe bits in the memory, I wonder what kind of OS you want to use in this application

[fpc-devel] FPC micro controller

2009-07-29 Thread Desmond Coertzen
Hello everybody, I'm new on the list. I have been using lazarus/fpc in huge projects for my company and for my own private ventures. FPC is a fantastic project and our true answer to Borland that has failed developers like me in a big way. I'm joining the list with my recent read of the work

Re: [fpc-devel] FPC micro controller

2009-07-29 Thread Desmond Coertzen
That is fantastic! Is this correct for application? var SomeIOPort: nibbles; begin SomeIOPort.low[7] := 1; end; On Wed, Jul 29, 2009 at 4:47 PM, Daniƫl Mantione daniel.manti...@freepascal.org wrote: Op Wed, 29 Jul 2009, schreef Desmond Coertzen: This is my first question

Re: [fpc-devel] FPC micro controller

2009-07-29 Thread Desmond Coertzen
: Op Wed, 29 Jul 2009, schreef Desmond Coertzen: This is my first question / suggestion: With byte sized variables being the smallest accessible variable in the PC architecture, will we see a language extension to provide bit accessible variables for the micro controllers? Do you mean