Quantcast
Channel: SCN : All Content - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 2935

XP PB11.5 Memory Allocation

$
0
0

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


Viewing all articles
Browse latest Browse all 2935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>