[Lazarus] Does anyone else having problems with FPC 2.5.1, GTK2 on Debian ?

Marcelo Borges de Paula marcbp at terra.com.br
Thu Aug 27 15:09:21 CEST 2009


On Thu, 27 Aug 2009 11:23:52 +0200
Graeme Geldenhuys <graemeg at opensoft.homeip.net> wrote:

> Hi,
> 
> As far as I know, Lazarus doesn't have a Thread List Window available.
> So I am trying to setup and external tools menu item which will do
> this for me, but I am have some problems with it.
> 
> This is the actual setup strings used for the external tool.
> 
> Program Filename:
>   /usr/bin/gnome-terminal
> 
> Parameters:
>   --title="Thread Monitor - $NameOnly($TargetFile())" --command="watch
> -n.1 'ps -C $NameOnly($TargetFile()) -L -o pid,tid,pcpu,state'"
> 
> 
> When I run Lazarus from the command line under Linux, this is the
> output shown to stdout when I try and run my external tool.
> 
> [TExternalToolList.Run] CmdLine="/usr/bin/gnome-terminal
> --title="Thread Monitor - project1" --command="watch -n.1 'ps -C
> project1 -L -o pid,tid,pcpu,state'"" WorkDir=""
> 
> 
> As far as I can see the macros used in the External Tool step was
> converted correctly. I can even copy and paste the CmdLine without the
> outer quotes and it executes fine from a teminal window. Yet, if I run
> it from the Tools menu gnome-terminal gives an error. The error is:
> "There was an error creating the child process for this terminal"
> 
> Anybody know what I am doing wrong?

It is a bug in fcl-process/src/unix/process.inc proc CommandToList
used by TProcess.
It only removes the outer ".
Please report it.

Mattias




More information about the Lazarus mailing list