Florian.Klaempfl at gmx.de
Sun Dec 31 13:27:53 CET 2000
At 01:40 31.12.00 +0200, you wrote:
>Hi. I'm doing some stuff in which i declare a record-type which
>contains an ansistring. When i try to allocate a variable of that type, i
>get a General Protection Fault. Here's the source code :
>var stuff:array[1..10] of Pstuff;
>Under Go32 it seems to work, but it crashes under Win32 & Linux.
>I've noticed that if i replace "new(stuff[idx])" with "new(stuff)" it
>works. And Delphi doesn't seem to have any problem with any of the 2 calls
>Is there any obvious solution for this ?
Which compiler version do you use? At least with 1.0.2 under linux
I can't reproduce it with the program you provided.
More information about the fpc-pascal