FPC Mail list reader
fpc at cdp.cugir.com
Sun Dec 31 00:40:07 CET 2000
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 ?
Thanx for reading till here,
More information about the fpc-pascal