Re: [fpc-pascal] Memory Size

2009-04-05 Thread Markus Glugla
Hi Jonas, > First of all, you set the global system unit variable > 'ReturnNilIfGrowHeapFails' to true, so that instead of a run time > error (or exception) you will simply get nil if a memory allocation > fails. This is a very good tip! I have read about 'ReturnNilIfGrowHeapFails' but I for

Re: [fpc-pascal] Memory Size

2009-04-05 Thread Jonas Maebe
On 04 Apr 2009, at 20:47, Markus Glugla wrote: But, if I allocate 2GB memory the program crashs with an access violation. I have read that fpc can handle arrays up to a size of 2GB, isn't? How great can be an array? First of all, you set the global system unit variable 'ReturnNilIfGrowHeap

Re: [fpc-pascal] Memory Size

2009-04-04 Thread Markus Glugla
Hi, Am Freitag, den 03.04.2009, 12:39 +0200 schrieb Marco van de Voort: > As Jonas said you first have to define that value in a multitasking > environment. Ok, I have allocate the memory at the program start and it runs fine. It is quick enough yet with memory swaping. But, if I allocate 2GB me

Re: [fpc-pascal] Memory Size

2009-04-03 Thread Marco van de Voort
In our previous episode, Markus Glugla said: > (very very quick) memory as a cache as soon as practicable. I would > cache streams of measurement values (single type, sample rate circa > 32KHz). The measurement program will run on diffrent machines with > diffrent RAM. Depending on the free

Re: [fpc-pascal] Memory Size

2009-04-03 Thread Markus Glugla
Hi Jonas, thank you for your answer. > On which OS? Debian 5.0 GNU/Linux (uname -r: 2.6.26-1-686) > Anyway, even if it would return non-zero values, the information would > be next to useless. The reason is that on modern OS'es, available > physical memory is dynamically divided between the

Re: [fpc-pascal] Memory Size

2009-04-03 Thread Jonas Maebe
On 03 Apr 2009, at 02:34, Markus Glugla wrote: I need the available memory (heap). At that time the functions maxavail or memavail did this. I read that I should use GetFPCHeapStatus and other function currently. This functions produce allways zero!! What can I do? What is wrong? I use fpc v

[fpc-pascal] Memory Size

2009-04-02 Thread Markus Glugla
Hi, I need the available memory (heap). At that time the functions maxavail or memavail did this. I read that I should use GetFPCHeapStatus and other function currently. This functions produce allways zero!! What can I do? What is wrong? I use fpc version 2.2.0 [2008/05/27] for i386. Here is so