Klaus Lichtenwalder (klaus@gaston.m.isar.de) wrote:
: Hi,
: we have a very nasty problem and can't see why it should be our fault.
: We keep getting the error
: error message: -4518 The 4GL program
: cannot allocate more space for temporary string storage
: in our reports, when there are too many print statements for too many
: lines.
: So, is there a misconception on our side, is it a well known fact/bug
: and how can we avoid this problem!!
I think it is fairly common. Informix sent me the following for this:
FUNCTION tss_hog()
define n smallint,str_var CHAR(50)
whenever error continue
for n = 1 to 1000
let str_var = tss_hog1()
end for
whenever error stop
end function
function tss_hog1()
whenever error continue
return "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
whenever error stop
end function
Call tss_hog in different parts of your code. It will help to pinppoint
the problem, albeit much PATIENCE is needed. Good luck
Pete