Re: [fpc-pascal] type Ta = 1..10; var a : Ta; // a not initialized= crash
Oh the version I reported was for the IDE. The compiler version is 2.0.4 Bye, Skybuck. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] type Ta = 1..10; var a : Ta; // a not initialized= crash
On 22 Sep 07, at 16:18, Skybuck Flying wrote: > Oh the version I reported was for the IDE. > > The compiler version is 2.0.4 Still - the latest version is 2.2.0. Do you observe the problem with that version too? Tomas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] memory allocation of dynamic array
Hi, a while ago I asked if I can assume the memory held by dynamic arrays is allocated in one contiguous block. The answer was sth. like "No, never!". I wrote a small testing programm using SetLenght() on an array multiple times using a bigger size every time and comparing the addresses of the allocated elements. I wasn't able to provoke getting something else than sizeof(integer), which is the base type of that array. My question: In which cases will it happen that the memory of a dynamic array is fragmented into multiple non-contiguous blocks? TIA, Marc ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal