Re: [fpc-pascal]linux question

2004-09-20 Thread A.J. Venter
On Tuesday, 21 September 2004 06:55, Paul Aviles wrote: > Forgive me for asking.. I need to do a few things, one is to run a shell > script and invoque program "prgA" and pass the result of program A back to > the shell script. I guess I can do: > > BACK = /sbin/prgA; echo $? > > A) is that corre

[fpc-pascal]linux question

2004-09-20 Thread Paul Aviles
Forgive me for asking.. I need to do a few things, one is to run a shell script and invoque program "prgA" and pass the result of program A back to the shell script. I guess I can do: BACK = /sbin/prgA; echo $? A) is that correct? B) how does prgA report the output back, using a simple write st

[fpc-pascal]heaptrc

2004-09-20 Thread Marcel Martin
Hello, I am using fpc 1.9.5 (2004/09/15). There is a problem with the unit heaptrc and the routine Reallocmem. For instance var p : PLongword; Reallocmem(p,1000*4); ... Reallocmem(p,200*4); <- this instruction upset heaptrc Does the problem come from Reallocmem or from the heaptrc unit