[fpc-pascal] Error: Identifier not found "try"

2009-02-06 Thread T.Guilleminot
Hello, The simple program below fails when compiling (2.2.2-8 and 2.2.4rc1) : program TEST_TRY; uses SysUtils, strutils; Function IsNumber(ValueToCheck:string):boolean; begin try StrToInt(ValueToCheck); IsNumber := true; except IsNumber := false; end; end; begin If IsNumber('123')

Re: [fpc-pascal] TProcess.CommandLine > 255 fails

2009-01-04 Thread T.Guilleminot
Thanks ! Changing "TheCommand" to ansistring seems work ! Did not think about this simple thing. I'm testing more deeply. Thanks again. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] TProcess.CommandLine > 255 fails

2009-01-04 Thread T.Guilleminot
Please provide a compilable program that demonstrates the problem. Jonas Create a myini.ini file containing : [TEST] CMD_OK=echo 'Hello !' CMD_NOT_OK=mencoder dvb://M6 -sws 9 -of lavf -lavfopts format=mp4 -vf scale=480:320,dsize=480:320,harddup -ovc x264 -x264encopts bitrate=500:vbv_maxr

Re: [fpc-pascal] TProcess.CommandLine > 255 fails

2009-01-03 Thread T.Guilleminot
> 2.2.x or 2.3.x? I used the 2.2.0 (provided by Ubuntu repositories). Then I just upgraded and tested in 2.2.2-8 but problem is still the same :( ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/

Re: Re: [fpc-pascal] TProcess.CommandLine > 255 fails

2009-01-03 Thread T.Guilleminot
I'm on Linux. I've no idea how TProcess is compiled actually. I discovered the problem with command passed into an ansistring and to test I also reproduced with a GTK_Entry Text (dont know how it is passed internally) Thanks. > I use TProcess.CommandLine very often and I discovered that it s

[fpc-pascal] TProcess.CommandLine > 255 fails

2009-01-02 Thread T.Guilleminot
Hi, I use TProcess.CommandLine very often and I discovered that it seems limited to 255 chars. Does anyone know how to workaround this limitation ? Thanks Tom ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mai

[fpc-pascal] IPC/SHMGET and Multiple Variables

2007-11-24 Thread T.Guilleminot
Hi I want to use IPC Shared Memory mecanism to enable communication between Linux processes. I followed doc example (http://community.freepascal.org:1/docs-html/rtl/ipc/shmctl) which works fine. However I'm unable to find how the handle multiple variables (or may be an array). Should I h

[fpc-pascal] Handling TProcess Output (Pipe) "information by "information" and in Real Time ?

2007-11-21 Thread T.Guilleminot
Hi, I'd like to be able to run an external program (a kind of daemon) and then grab his output "information by information" and in REAL TIME. Then in the caller/main program I will test the output (with IF or CASE statements) and act accordingly. If it seems possible to test on output I hav

Re: Re: [fpc-pascal] Linux : Using SDL with GTK2 ?

2007-11-18 Thread T.Guilleminot
Thanks a LOT Andrew ! Your example is very nice ! Tom ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Linux : Using SDL with GTK2 ?

2007-11-16 Thread T.Guilleminot
Thanks for your answer. I'm a newbie so I still have a few questions :o) : 1. I'm unsure of chronology of things to do in the program body. Is the following correct : a) Create GTK stuff b) SDL Hack/SDL_WINDOWID c) SDL_INIT d) Show GTK widgets 2. You mentioned "this is for gtk1 onl