Re: [fpc-pascal]Retrieving memory size?

2003-03-27 Thread Jim Wilson
At 11:18 AM 3/27/2003, you wrote: Sorry, I meant physical. The Win32 API has a function called GlobalMemoryStatus that might give you some of the info you're looking for, but obviously it's not cross-platform. Don't know if that helps much. Regards, Jim __

Re: [fpc-pascal]Retrieving memory size?

2003-03-27 Thread Preben Mikael Bohn
Marco van de Voort wrote: > What memory size? Physical, virtual, both, physical-kernel? Sorry, I meant physical. > There is no way yet, the only way would be to create a unit and implement > them on all platforms. OK. I guess I'll just have to live with this... Best regards Preben -- In poli

Re: [fpc-pascal]Retrieving memory size?

2003-03-27 Thread Marco van de Voort
> Dear all, I am trying to retrieve the memory size. What memory size? Physical, virtual, both, physical-kernel? > As maxavail and memavail > only gives the current available heap size (grows dynamically with the need) I > can not use these functions for this purpose. Are there any ways to retrie

Re: [fpc-pascal]Retrieving memory size?

2003-03-27 Thread A.J. Venter
On Linux systems you can get it out of /proc. If you are on windows however, I am not sure how to do it. Have a look at the contributed units, I am almost certain I have seen a unit there for doing it with. Sorry if this is not wonderfull help, but then again I only develop on and for Linux. On T

[fpc-pascal]Retrieving memory size?

2003-03-27 Thread Preben Mikael Bohn
Dear all, I am trying to retrieve the memory size. As maxavail and memavail only gives the current available heap size (grows dynamically with the need) I can not use these functions for this purpose. Are there any ways to retrieve it in a cross-platform way? Best regards Preben ___

Re: [fpc-pascal]Arrays with Undefined Ranges.

2003-03-27 Thread Jon David Sawyer
On Thu, 2003-03-27 at 03:36, Michael Van Canneyt wrote: > > > On 26 Mar 2003, Jon David Sawyer wrote: > > > I seem to remember being able to declare something like: > > MyArray = Array of Byte; > > > > Useing "MyArray" as an easy way to get a pointer to a memory location. > > > > Now if I do som

Re: [fpc-pascal]Arrays with Undefined Ranges.

2003-03-27 Thread Michael Van Canneyt
On 26 Mar 2003, Jon David Sawyer wrote: > I seem to remember being able to declare something like: > MyArray = Array of Byte; > > Useing "MyArray" as an easy way to get a pointer to a memory location. > > Now if I do something similar: tQPixelArray = Array of tQPixel; I get a > compiler error te

Re: [fpc-pascal]OT: An FPC program in LinuxFormat Magazine

2003-03-27 Thread Andrew Higgs
"A.J. Venter" <[EMAIL PROTECTED]> wrote .. > My R0.02's worth (2c's South-African) > A.J. Hell, that's rather cheap hey (approximately 0.0025c American (about R8/$1)) Kind regards Andrew Higgs

[fpc-pascal]Arrays with Undefined Ranges.

2003-03-27 Thread Jon David Sawyer
I seem to remember being able to declare something like: MyArray = Array of Byte; Useing "MyArray" as an easy way to get a pointer to a memory location. Now if I do something similar: tQPixelArray = Array of tQPixel; I get a compiler error telling me it Expected [ and got Array. Is there any way