Re: [fpc-pascal] (Unix) file locking

2016-06-20 Thread Björn Lundin
On 2016-06-21 00:37, Fabio Luis Girardi wrote: > > > 2016-06-20 18:15 GMT-03:00 Björn Lundin <b.f.lun...@gmail.com > <mailto:b.f.lun...@gmail.com>>: > > > on Linux and AIX I use lockf. > then read() and write() from the os. > However I lo

Re: [fpc-pascal] (Unix) file locking

2016-06-20 Thread Björn Lundin
On 2016-06-20 11:28, Mark Morgan Lloyd wrote: > I'm approaching a situation where up to four identical processes will be > reading and writing the same files. There will be process-level > synchronisation which should prevent clashes, but I'd still like to add > locking at the file level. > > I

Re: [fpc-pascal] fpc/lazarus and kinect sample

2016-05-14 Thread Björn Lundin
On 2016-05-11 10:12, Michael Van Canneyt wrote: > > No worries. I will send it to you, if I can still find it :-) If you cannot find it, you perhaps remember : Procedure TMainForm.FormCreate(Sender: TObject); Begin FESkeleton := INVALID_HANDLE_VALUE; FEDepth := INVALID_HANDLE_VALUE; the

Re: [fpc-pascal] fpc/lazarus and kinect sample

2016-05-11 Thread Björn Lundin
On 2016-05-11 10:12, Michael Van Canneyt wrote: > > No worries. I will send it to you, if I can still find it :-) > > Michael. Thanks, I'd really appreciate that -- Björn ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] fpc/lazarus and kinect sample

2016-05-11 Thread Björn Lundin
On 2016-05-10 23:41, wkitt...@windstream.net wrote: > On 05/10/2016 04:33 PM, Björn Lundin wrote: >> I found the nice article "Programming the Microsoft Kinect in Pascal" by >> Michaël Van Canneyt, in Blaise Pascal Magazine. (Nr 5 / 2013) >> >> However, I wonde

[fpc-pascal] fpc/lazarus and kinect sample

2016-05-10 Thread Björn Lundin
Hi! I got an xbox 360 kinect, which I'd like to use for controlling a drone (Crazyflie 2). https://www.youtube.com/watch?v=UzFwg2Fpv4E The drone software is all in a virtual machine, and I do not get the kinect to work with that machine. (3d accelerated cards are hard to get to work well) So,

Re: [fpc-pascal] Postgresql interface bronken for Raspberry pi model 1b

2016-04-03 Thread Björn Lundin
On 2016-04-02 20:29, Bo Berglund wrote: > On Mon, 28 Mar 2016 15:30:36 +0200, Björn Lundin > <b.f.lun...@gmail.com> wrote: > >> That speaks for trying to compile 3.0.0. >> The pi is on wheezy, so there is no .deb package >> for it. > > I made a script f

Re: [fpc-pascal] Postgresql interface bronken for Raspberry pi model 1b

2016-03-28 Thread Björn Lundin
On 2016-03-28 15:02, Marco van de Voort wrote: > There are like 250+ database fixes since 2.6.0. That speaks for trying to compile 3.0.0. The pi is on wheezy, so there is no .deb package for it. Thanks -- Björn ___ fpc-pascal maillist -

Re: [fpc-pascal] Postgresql interface bronken for Raspberry pi model 1b

2016-03-28 Thread Björn Lundin
On 2016-03-28 13:45, Michael Van Canneyt wrote: > I don't think the problem is in the SQLDB code, it is CPU-agnostic. Hmm, real strange I chagne the code like this Q2 := CreateQuery(T) ; sSql := 'insert into TEST values (:INT, :FT, :DT)'; Q2.SQL.Text := sSql; Q2.Prepare;

Re: [fpc-pascal] Postgresql interface bronken for Raspberry pi model 1b

2016-03-28 Thread Björn Lundin
On 2016-03-28 13:45, Michael Van Canneyt wrote: > > I don't think the problem is in the SQLDB code, it is CPU-agnostic. > Hmm, ok. I'm looking at the sqldb code, and I'll need some time to digest it. Meanwhile, I think I'll try using the PQConnection unit directly, to see if I get the same

Re: [fpc-pascal] Postgresql interface bronken for Raspberry pi model 1b

2016-03-28 Thread Björn Lundin
On 2016-03-28 10:27, Michael Van Canneyt wrote: > > > On Mon, 28 Mar 2016, Björn Lundin wrote: >> However I'm running into trouble on timestamps fields on the pi. > > [snip] > >> Q2.Prepare; >> //Q2.Params.ParamByName('DT').DataType := ftDateTime; >>

[fpc-pascal] Postgresql interface bronken for Raspberry pi model 1b

2016-03-28 Thread Björn Lundin
Hi! I'm using a pi as a monitor for some process, so I'm trying to get SDL2 and a working postgres interface on it. However I'm running into trouble on timestamps fields on the pi. I wrote a console program on Win7, using 32-bit compiler bundled with Lazarus 1.6. (I think is is fpc 3.0.0) and