[fpc-pascal]MaxAvail in Win32 systems
pfv at cooldown.demon.nl
Sun May 12 16:57:23 CEST 2002
> I write a program like database, you know:
> Person = record
> name: string;
> phone: string;
> and I am using dynamic list.
> When program starts I read all records to memory (BTW: it is good idea?) and
> I want to check it is enough memory to load next record:
> if MaxAvail >= SizeOf(Person^.desc) then ...
> Please tell me how its work in Win32 because I create file about 400 MB
> and all record was loaded sucessfully (PC with 64 MB physical RAM and 600 MB
> virtual memory). I know it's using virtual memory ...
The Heap will grow when needed. Just check the Heapsize value and you'll
see that it increases
More information about the fpc-pascal