In the Help file, under 'Variables', we can read that the length of a String is unlimited.PureBasic allows many type variables which can be standard integers, float, double, quad and char numbers or even string characters. Here is the list of the native supported types and a brief description :
...
Name.......Extension...Memory consumption......Range
String........s............ string length + 1...........unlimited
...
Then, why does then the following code return an [ERROR] Invalid memory access. (write error at address 39788544) ?
Code: Select all
p.s=Space(18306000000)
Debug Len(p.s)

