Re: [fpc-pascal] How to send operating system commands (Linux on RPi)?

2016-07-01 Thread Bo Berglund
On Sat, 02 Jul 2016 01:12:34 +0200, Bo Berglund wrote: >The commands I am looking at now are: >sudo ifup wlan0 >sudo ifdown wlan0 > >How could this be accomplished in a FreePascal program running as user >Pi? To be specific I would like to know how I can send any command

Re: [fpc-pascal] What is the difference between TThread.Queue(aMethod: TThreadMethod) and Application.QueueAsyncCall(AMethod: TDataEvent; Data: PtrInt);

2016-07-01 Thread Mattias Gaertner
On Fri, 1 Jul 2016 17:47:58 +0200 (CEST) Michael Van Canneyt wrote: >[...] > Application.QueueAsyncCall has nothing to do with threads. > This is an LCL method which can be used to insert a callback in the message > loop. > I think it unlikely that this is thread-safe,

[fpc-pascal] How to send operating system commands (Linux on RPi)?

2016-07-01 Thread Bo Berglund
I need to include the ability to switch on and off the WiFi network connection of a Raspberry Pi3 running Raspbian Jessie into my FreePascal program. The commands I am looking at now are: sudo ifup wlan0 sudo ifdown wlan0 How could this be accomplished in a FreePascal program running as user Pi?

Re: [fpc-pascal] What is a *.fpm file in FPC Trunk?

2016-07-01 Thread Marco van de Voort
In our previous episode, Robert Wolfe said: > These look like makefiles. My guess would be that these are output of fpmake meant for packaging systems like fppkg ? With a checksum in them they are more output than input to the build system. ___

Re: [fpc-pascal] What is a *.fpm file in FPC Trunk?

2016-07-01 Thread Robert Wolfe
These look like makefiles. On Thu, Jun 30, 2016 at 4:08 AM, Graeme Geldenhuys < mailingli...@geldenhuys.co.uk> wrote: > Hi, > > While browsing the "packages" directory I came across *.fpm files. What > are they for, and what process creates them? > > For example: > > [

Re: [fpc-pascal] What is the difference between TThread.Queue(aMethod: TThreadMethod) and Application.QueueAsyncCall(AMethod: TDataEvent; Data: PtrInt);

2016-07-01 Thread Henry Vermaak
On Fri, Jul 01, 2016 at 05:47:58PM +0200, Michael Van Canneyt wrote: > On Fri, 1 Jul 2016, Dennis wrote: > >Apart from the TThreadMethod and TDataEvent, what are the major > >differences? Are both of them thread safe to call from non-main > >thread? Will both of them overwrite some queue or

Re: [fpc-pascal] What is the difference between TThread.Queue(aMethod: TThreadMethod) and Application.QueueAsyncCall(AMethod: TDataEvent; Data: PtrInt);

2016-07-01 Thread Michael Van Canneyt
On Fri, 1 Jul 2016, Dennis wrote: Apart from the TThreadMethod and TDataEvent, what are the major differences? Are both of them thread safe to call from non-main thread? Will both of them overwrite some queue or buffer if the queues are full? I tried to study the source code but I cannot

[fpc-pascal] What is the difference between TThread.Queue(aMethod: TThreadMethod) and Application.QueueAsyncCall(AMethod: TDataEvent; Data: PtrInt);

2016-07-01 Thread Dennis
Apart from the TThreadMethod and TDataEvent, what are the major differences? Are both of them thread safe to call from non-main thread? Will both of them overwrite some queue or buffer if the queues are full? I tried to study the source code but I cannot find the implementation parts. I only