Re: [fpc-pascal] Segmentation Error using VideoBuf

2014-05-21 Thread mokashe.ram
Thanks for Your Help, But facing the same issue using the last post code :) -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Segmentation-Error-using-VideoBuf-tp5719293p5719302.html Sent from the Free Pascal - General mailing list archive at Nabble.com.

Re: [fpc-pascal] Segmentation Error using VideoBuf

2014-05-21 Thread Tomas Hajny
On Wed, May 21, 2014 08:16, mokashe.ram wrote: Thanks for Your Help, But facing the same issue using the last post code :) Then please include fully compilable source which does not work for you. I tested it yesterday by I adding a basic main program body with four lines consisting of

[fpc-pascal] Ping problems - OS/X

2014-05-21 Thread Peter Brooks
I've got a little program that just pings. It runs. I get a 0 error return, but there doesn't seem to be any output: -rw-r--r-- 1 root wheel 0 21 May 11:09 output.txt So it's re-writing the output.txt file, but the written(AstringList.Text) isn't putting anything there. This is almost a

Re: [fpc-pascal] Ping problems - OS/X

2014-05-21 Thread Mattias Gaertner
On Wed, 21 May 2014 11:11:11 +0200 Peter Brooks peter.bro...@kchclinics.com wrote: I've got a little program that just pings. It runs. I get a 0 error return, but there doesn't seem to be any output: -rw-r--r-- 1 root wheel 0 21 May 11:09 output.txt So it's re-writing the output.txt

Re: [fpc-pascal] Ping problems - OS/X

2014-05-21 Thread Peter Brooks
Sorry, I misled you. I did move it higher up, earlier, to test something, and I forgot to put it back. This version has exactly the same behaviour: -rw-r--r-- 1 peterbrooks wheel 0 21 May 13:00 output.txt Program nmp(input,output); uses Classes, SysUtils, Process; var AProcess:

Re: [fpc-pascal] Ping problems - OS/X

2014-05-21 Thread Mark Morgan Lloyd
Peter Brooks wrote: Sorry, I misled you. I did move it higher up, earlier, to test something, and I forgot to put it back. This version has exactly the same behaviour: AStringList.LoadFromStream(AProcess.Output); What is this replacing the current content with? -- Mark Morgan Lloyd

Re: [fpc-pascal] Ping problems - OS/X

2014-05-21 Thread Mattias Gaertner
On Wed, 21 May 2014 13:00:58 +0200 Peter Brooks peter.bro...@kchclinics.com wrote: Sorry, I misled you. I did move it higher up, earlier, to test something, and I forgot to put it back. This version has exactly the same behaviour: -rw-r--r-- 1 peterbrooks wheel 0 21 May 13:00

Re: [fpc-pascal] Ping problems - OS/X

2014-05-21 Thread Paul Breneman
Peter, I've been working with running Linux on an Android tablet (without rooting the device) and one thing I've seen mentioned is that ping requires higher priorities (I don't remember the details). You can read more here: http://turbocontrol.com/gnuroot.htm Best regards, Paul

Re: [fpc-pascal] Ping problems - OS/X

2014-05-21 Thread Reinier Olislagers
On 21/05/2014 15:01, Paul Breneman wrote: I've been working with running Linux on an Android tablet (without rooting the device) and one thing I've seen mentioned is that ping requires higher priorities (I don't remember the details). You can read more here:

Re: [fpc-pascal] Ping problems - OS/X

2014-05-21 Thread Peter Brooks
Unfortunately, I've tried both the full path and just the name - apparently TProcess is supposed to look in the path - and it does work. When it is called, it returns a '0' indicating successful completion. I just tried it again with /sbin/ping instead of ping and the behaviour is just the same.

Re: [fpc-pascal] Ping problems - OS/X

2014-05-21 Thread Mark Morgan Lloyd
Peter Brooks wrote: Unfortunately, I've tried both the full path and just the name - apparently TProcess is supposed to look in the path - and it does work. When it is called, it returns a '0' indicating successful completion. I just tried it again with /sbin/ping instead of ping and the

Re: [fpc-pascal] Ping problems - OS/X

2014-05-21 Thread Reinier Olislagers
On 21/05/2014 17:02, Reinier Olislagers wrote: On 21/05/2014 16:36, Peter Brooks wrote: Unfortunately, I've tried both the full path and just the name - apparently TProcess is supposed to look in the path - and it does work. When it is called, it returns a '0' indicating successful

Re: [fpc-pascal] Ping problems - OS/X

2014-05-21 Thread Reinier Olislagers
On 21/05/2014 16:36, Peter Brooks wrote: Unfortunately, I've tried both the full path and just the name - apparently TProcess is supposed to look in the path - and it does work. When it is called, it returns a '0' indicating successful completion. /disclaimer: haven't looked at your code/

Re: [fpc-pascal] Delphi compatible anonymous functions

2014-05-21 Thread Craig Peterson
On 5/18/2014 2:34 AM, Florian Klämpfl wrote: I wanted only to point out that personally I would first work on OpenMP support than implementing anonymous methods (which I consider anyways very un-pascalish) and closures. That's fair. I wouldn't expect anyone who's philosophically opposed to

Re: [fpc-pascal] Delphi compatible anonymous functions

2014-05-21 Thread Craig Peterson
On 5/15/2014 12:58 AM, Sven Barth wrote: As Michal said, someone was working on that, but I didn't hear anything from him in the past year or so... maybe when I find the time and have some other topics removed from my list I'll look into reintegrating and finishing what he has begun... I sent

Re: [fpc-pascal] Ping problems - OS/X

2014-05-21 Thread waldo kitty
On 5/21/2014 7:00 AM, Peter Brooks wrote: AStringList.LoadFromStream(Aprocess.Output); AStringList.LoadFromStream(AProcess.Stderr); AStringList.LoadFromStream(AProcess.Output); [quote] LoadFromStream loads the contents of Stream into the stringlist. Each line in the stream (as marked

Re: [fpc-pascal] Ping problems - OS/X

2014-05-21 Thread Peter Brooks
Yes, thank you. The best thing I've learned is to be suspicious of examples... I've got it now, thank you all for the assistance. I took AStringList.Add() to mean that it added the string to the list of strings - I was wrong.. I did note that the example said that it was flawed, but, foolishly,

Re: [fpc-pascal] Ping problems - OS/X

2014-05-21 Thread Mattias Gaertner
On Wed, 21 May 2014 21:44:10 +0200 Peter Brooks peter.bro...@kchclinics.com wrote: Yes, thank you. The best thing I've learned is to be suspicious of examples... I've got it now, thank you all for the assistance. I took AStringList.Add() to mean that it added the string to the list of

Re: [fpc-pascal] Ping problems - OS/X

2014-05-21 Thread Saunders, Rich
On 2014-05-21 15:44, Peter Brooks wrote: I took AStringList.Add() to mean that it added the string to the list of strings - I was wrong.. How were you wrong about that? That's exactly what it does. Looks to me you were wrong about LoadFromStream. -- Cheers! Rich Saunders

Re: [fpc-pascal] Delphi compatible anonymous functions

2014-05-21 Thread Sven Barth
Am 21.05.2014 17:53 schrieb Craig Peterson cr...@scootersoftware.com: I don't mind keeping a fork of a stable release with the feature backported, if that's what it takes, though obviously I'd prefer it to be in properly. Sven, if you're still following the thread, would a bounty help bump the