Re: [fpc-pascal] Checking Linux process existence (child or not) without OS command ?

2009-09-21 Thread T. Guilleminot
Thanks. May be more by name actually. On 21 Sep 2009, at 14:58, T. Guilleminot wrote: > Does anyone know a simple way to check if a Linux process exists/runs > (child or not) *without* running an OS command via TProcess (or > other)? How do you want to identify this process? By nam

Re: [fpc-pascal] Checking Linux process existence (child or not) without OS command ?

2009-09-21 Thread T. Guilleminot
You mean by scanning /proc recursively ? 2009/9/21 T. Guilleminot : > Hi, > > Does anyone know a simple way to check if a Linux process exists/runs > (child or not) *without* running an OS command via TProcess (or other)? You can read all the /proc/%d/cmdline files to search fo

[fpc-pascal] Checking Linux process existence (child or not) without OS command ?

2009-09-21 Thread T. Guilleminot
Hi, Does anyone know a simple way to check if a Linux process exists/runs (child or not) *without* running an OS command via TProcess (or other)? Thanks. Tom ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailma

[fpc-pascal] Linux program sometimes crashes with "EProcess : Failed to create pipes"

2009-09-10 Thread T. Guilleminot
Hi, Have a Linux program that recently started to crash several times with such message : An unhandled exception occurred at $080A4CB9 : EProcess : Failed to create pipes $080A4CB9 $080A4D3D $080526E0 $08057C11 $08058809 $B7B082B6 $B7B07B88 $B7B0B0EB $B7B0B5BA $B7CF57D9 $0805

[fpc-pascal] [Linux] Accessing Shared Libraries in *Current* Binary Directory

2008-08-20 Thread T. Guilleminot
Hi, For portability reason I would need to keep my shared libraries in the same directory as the binary which need to call them. As per http://courses.cs.vt.edu/~cs3304/FreePascal/doc/prog/node13.html : "This program can be compiled without any additional command-switches, and should run just lik

[fpc-pascal] FP/GTK-GLib : Sending/Accessing Callback GPointer data ?

2008-08-06 Thread T. Guilleminot
Hi, I'd like to be able to pass/access variable(s ?) to/from the "data" part of the "g_signal_connect" function, eg : ... Procedure MyActionProcedure (widget : pGtkWidget ; data : gpointer) cdecl; begin ... // Using data content here... end; ... g_signal_connect (G_

[fpc-pascal] Embedding a Video Player into a Linux/FP/GTK2 Application ?

2008-06-20 Thread T. Guilleminot
Hi ! I'd like to be able to embed a video player (preferably MPlayer) into a Freepascal/GTK2 application (on Linux) in order to display some video or webcam flows. I found some stuff on the web but I've no idea how to exploit this. Generally they are written in C and there is no FPC bindings :

[fpc-pascal] Re : function now shows bad date (-2 hours)

2008-04-07 Thread T. Guilleminot
Got same issue. Problem on was my BIOS clock which were not at the correct time. This was hidden by the OS which showed correct hour (wrong timezone). Tom ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/l

[fpc-pascal] Externalization and inclusion of .PAS files (with GTK+) ?

2008-02-28 Thread T. Guilleminot
Hi, I'd like to simplify my programs by creating a short MAIN.PAS file and several additional .PAS files called inside. So I'd like to deport most of my code (procedures, functions...) to these external .pas files and include them into the main.pas, a kind of "include"-like in PHP. I browsed the