Re: [fpc-pascal] File Descriptor in Windows ?

2015-03-25 Thread fredvs
> It's not if developers wouldn't decide to make their libraries so *nix centric... Or when they will decide to develop their libraries with something else than C, that gives them compilers choice that are not compatible together (a library compiled with CGwin is not compatible with one compiled w

Re: [fpc-pascal] File Descriptor in Windows ?

2015-03-25 Thread Sven Barth
On 25.03.2015 19:57, fredvs wrote: PS: Why everything must be so compilcated with Windows ? It's not if developers wouldn't decide to make their libraries so *nix centric... Regards, Sven ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] File Descriptor in Windows ?

2015-03-25 Thread fredvs
> @ Andrew > Hum,... by the way,.. if,.. fortuitously (and by chance) you have already > try it > with your PulseAudio wrapper, could it be possible to show some code ? Ooops, i just check my mail now and =>... Andrew, you are a Angel ;-) Tetra billion of thanks. PS: I will test it and give you

Re: [fpc-pascal] File Descriptor in Windows ?

2015-03-25 Thread fredvs
@ Michael => > They are available in default variables in the system unit: > StdInputHandle,StdOutputHandle,StdErrHandle Yep, good to know, thank-you ;-) Sadly, it does not solve the problem... ;-( @ Andrew > you could use mpg123_replace_reader_handle and mpg123_open_handle Ok, good idea, i wil

Re: [fpc-pascal] File Descriptor in Windows ?

2015-03-25 Thread Andrew Haines
On 03/25/2015 08:23 AM, fredvs wrote: Hello. Sorry to sorry to bother you with that file descriptors again... ;-( There are some answers there on mpg123 forum. They explain that "simple stdin/stdout file descriptors would work." Of course all what they explained is in C ;-( OK, but how can i u

Re: [fpc-pascal] TProcess does not work in Windows XP

2015-03-25 Thread Antonio Sanguigni
2015-03-25 17:26 GMT+01:00 Graeme Geldenhuys : > On 2015-03-25 14:42, Antonio Sanguigni wrote: > I'm affair there must be something weird in your WinXP setup then. I > just tested again using WinXP and Maximus IDE (which uses the exact code > I posted earlier). Attached is a screenshot showing the

Re: [fpc-pascal] TProcess does not work in Windows XP

2015-03-25 Thread Graeme Geldenhuys
On 2015-03-25 14:42, Antonio Sanguigni wrote: > Thanks Graeme, works well ... in Windows 7 here. Same code in Windows > XP nothing to do. :O I'm affair there must be something weird in your WinXP setup then. I just tested again using WinXP and Maximus IDE (which uses the exact code I posted earlie

Re: [fpc-pascal] TProcess does not work in Windows XP

2015-03-25 Thread Antonio Sanguigni
2015-03-25 17:15 GMT+01:00 Pierre Free Pascal : > Are you sure that it is not specific to the executable that you run? > > Did you try if redirecting the output of this executable > to a file using simply Windows Console > executable.exe all args > outfile.txt > > you get the same results on Wi

Re: [fpc-pascal] TProcess does not work in Windows XP

2015-03-25 Thread Pierre Free Pascal
Are you sure that it is not specific to the executable that you run? Did you try if redirecting the output of this executable to a file using simply Windows Console executable.exe all args > outfile.txt you get the same results on Windows XP as on Windows 7? Pierre Muller > -Message d'o

Re: [fpc-pascal] TProcess does not work in Windows XP

2015-03-25 Thread Antonio Sanguigni
2015-03-25 12:56 GMT+01:00 Graeme Geldenhuys : > I've used the following code in fpGUI's demo IDE and it works here under > FreeBSD, Linux and Win2000-Win7 (I don't have Win8 so can't test that). > > The following code executes the FPC compiler an captures the results and > triggers an event, whic

Re: [fpc-pascal] File Descriptor in Windows ?

2015-03-25 Thread Michael Van Canneyt
On Wed, 25 Mar 2015, fredvs wrote: Hello. Sorry to sorry to bother you with that file descriptors again... ;-( There are some answers there on mpg123 forum. They explain that "simple stdin/stdout file descriptors would work." Of course all what they explained is in C ;-( OK, but how can i u

Re: [fpc-pascal] File Descriptor in Windows ?

2015-03-25 Thread fredvs
Hello. Sorry to sorry to bother you with that file descriptors again... ;-( There are some answers there on mpg123 forum. They explain that "simple stdin/stdout file descriptors would work." Of course all what they explained is in C ;-( OK, but how can i use "simple stdin/stdout file descriptors

Re: [fpc-pascal] TProcess does not work in Windows XP

2015-03-25 Thread Graeme Geldenhuys
On 2015-03-24 19:56, Antonio Sanguigni wrote: > My > problem is Windows XP I mean, the same code seems does not produce any > results. I've used the following code in fpGUI's demo IDE and it works here under FreeBSD, Linux and Win2000-Win7 (I don't have Win8 so can't test that). The following cod

Re: [fpc-pascal] TProcess does not work in Windows XP

2015-03-25 Thread Antonio Sanguigni
2015-03-25 10:47 GMT+01:00 Pierre Free Pascal : > It could also be due to the problem we detected in fpmkunit: > If the stderr is a separate pipe and that pipe is full, > the inferior will stop until that pipe is read. > See this patch: > > http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/packa

Re: [fpc-pascal] TProcess does not work in Windows XP

2015-03-25 Thread Michael Van Canneyt
On Wed, 25 Mar 2015, Antonio Sanguigni wrote: Once more: Zero is a valid return value for read from a pipe. So it can perfectly be that read attempts 50 times returns 0, and only at read attempt 51 you get a positive result. That is why you must check isRunning, and not rely on the return va

Re: [fpc-pascal] TProcess does not work in Windows XP

2015-03-25 Thread Antonio Sanguigni
> Once more: > Zero is a valid return value for read from a pipe. > > So it can perfectly be that read attempts 50 times returns 0, and only at > read attempt 51 you get a positive result. > > That is why you must check isRunning, and not rely on the return value of > readbytes. Thank you, this is

Re: [fpc-pascal] TProcess does not work in Windows XP

2015-03-25 Thread Pierre Free Pascal
> -Message d'origine- > De : fpc-pascal-boun...@lists.freepascal.org [mailto:fpc-pascal- > boun...@lists.freepascal.org] De la part de Michael Van Canneyt > Envoyé : mercredi 25 mars 2015 09:54 > À : FPC-Pascal users discussions > Objet : Re: [fpc-pascal] TProcess does not work in Windows

Re: [fpc-pascal] TProcess does not work in Windows XP

2015-03-25 Thread Michael Van Canneyt
On Wed, 25 Mar 2015, Antonio Sanguigni wrote: 2015-03-25 8:41 GMT+01:00 Michael Van Canneyt : -- code --- procedure TBurpClient.Run; begin fOurProcess.Options := [poUsePipes] + [poNoConsole]; fOurProcess.Execute; while True do begin // make sure we have

Re: [fpc-pascal] Free Pascal and Lazarus Nightly Builds

2015-03-25 Thread vfclists .
On 13 March 2015 at 18:54, Anthony Walter wrote: > Okay, here is what was happening and I apologize for the confusion. > > Before the source files are updated each night, my script applies > "changes.diff" the uploads the sources to an amazon s3 bucket (I pay for > the bandwidth and avoid leachin

Re: [fpc-pascal] TProcess does not work in Windows XP

2015-03-25 Thread Antonio Sanguigni
2015-03-25 8:41 GMT+01:00 Michael Van Canneyt : >> -- code --- >> procedure TBurpClient.Run; >> begin >> fOurProcess.Options := [poUsePipes] + [poNoConsole]; >> fOurProcess.Execute; >> while True do >> begin >>// make sure we have room >>fMemStream.SetSiz

Re: [fpc-pascal] TProcess does not work in Windows XP

2015-03-25 Thread Michael Van Canneyt
On Wed, 25 Mar 2015, Antonio Sanguigni wrote: 2015-03-25 5:01 GMT+01:00 leledumbo : 1. Define "does not produce any results." Simply I cannot get output from console app which I'm trying to run and capture. Again, this is happening just for windows xp. Same procedure (follow code) in Windo

Re: [fpc-pascal] TProcess does not work in Windows XP

2015-03-25 Thread Antonio Sanguigni
2015-03-25 5:01 GMT+01:00 leledumbo : > 1. Define "does not produce any results." Simply I cannot get output from console app which I'm trying to run and capture. Again, this is happening just for windows xp. Same procedure (follow code) in Windows 7 is right. > 2. Show your code Yes, you are a