Hi Unifacers,
I've just found a very specific issue I would like to share to know if anyone has already met something similar.
In a VERY OLD piece of code a Uniface application was splitting a string content in 2 parts:
fileload v_inputfile, v_content
scan v_content, "%%^"
v_fin = $result
if (v_fin <= 0) return(-1)
v_ini = v_fin + 1
v_fin = v_fin - 1
v_firstrow = v_content[1:v_fin]
v_content = v_content[v_ini]
For business reason input files dimension at customer site is growth a lot during last year and this piece of code was is some situation NOT anymore working correctly, truncating v_content to about 128-129MB. I have found a workaround forcing string extraction up to length of v_content:
fileload v_inputfile, v_content
scan v_content,"%%^"
v_fin = $result
if (v_fin <= 0) return(-1)
v_ini = v_fin + 1
v_fin = v_fin - 1
v_firstrow = v_content[1:v_fin]
v_fin = $length(v_content)
v_content = v_content[v_ini, v_fin]
Has anyone met this situation already?
Environment:
Platform: Windows10 2004 64bit
Uniface: 9.7.05.054 32bit
Regards,
Gianni