Skip to Content
0
Former Member
Aug 22, 2013 at 04:26 PM

XP PB11.5 Memory Allocation

76 Views

We've just come across an issue where a string is hitting an upper limit and causing a GPF.

According to the Docs...

string

A standard datatype that is characters enclosed in single (') or double (") quotation marks, including a string of 0 length (the empty string ""). The maximum number of characters in a string is 2,147,483,647.

I tried this simple bit of code..

String a, b, c

a = Fill("x", 90000000) // 90 million

b = Fill("y", 20000000) // 20 million

c = a + b

When it reaches the concatenation line, the application faults. obviously 110MB is quite a bit less than 2GB

There is about 1.3GB of free memory, so it's not that.

PB 11.5 build 2506

Windows XP & 7

Thanks

Adrian