Dear all,
I have heavy use of datastore array within an NVO and since it's batch operation I try to release memory, with very limited
It's something like that:
u_nvo_test uo_test
datastore lds_try//simple "external" data object with three fields and three rows of strings
long ll_ndx
uo_test = Create u_nvo_test
'
for ll_ndx = 1 to 3000
uo_test.test[ll_ndx] = Create datastore
uo_test.test[ll_ndx].SetTransObject(SQLCA)
uo_test.test[ll_ndx].dataobject = 'd_try'
next
for ll_ndx = 1 to 3000
uo_test.test[ll_ndx].reset()
uo_test.test[ll_ndx].dataobject = ''
destroy uo_test.test[ll_ndx]
next
destroy uo_test
GarbageCollect ( )
On the above script, the memory go up to approx. 130 MB, later, on the 2nd loop release about 30 MB
How can I release more memory? How can i avoid this memory leakage?
PB 2022 R2
Many Thanks!