[fpc-pascal] readonly variables

2009-11-28 Thread Markus Glugla
Hello, is it possible to set a variable in a programm as a readonly variable? I would set a variable at a position in the runing programm. Since this time the variable should be readonly. The next set of the variable should produce an error. In bash programming you found a command readonly

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 forget

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

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

[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

[fpc-pascal] Web-Server not available

2008-11-11 Thread Markus Glugla
Hi, I can't arrive the URL http://www.freepascal.org since yesterday evening! Is there a problem with the web server? I test it with epiphany, iceweasel, konqueror and wget. After a request, all applications wait for an answer but doesn't get some stuff :-( The host is pingable: ping -c 10