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

PB 12 Memory issue with huge arrays

$
0
0

A french guy has memory issues with PB 12, the memory is not deallocated after the garbagecollect call.

Here is the code to reproduce the problem:

 

Double t_1[], t_2[] 
long ll_i  
for ll_i = 1 to 50000000 
t_1[ll_i] = 1 
next
t_1 = t_2 
garbagecollect() 

During the loop, the memory is increasing but after clearing the variable and calling garbagecollect(), the memory is still used.

The guy must exit the application to free the memory.

He tried with a fixed size array but PB does not allow 50 millions records in an array.

 

Any suggestion?

 

Link in french:

PowerBuilder � Donf ! / Comment lib�rer compl�tement la m�moire avec PB


Viewing all articles
Browse latest Browse all 2935

Trending Articles



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