4518 error
Posted in 1994
chris@news.csl-gmbh.net (Christoph Schiffer) posted:
> we are using 4GL 4.1 on SCO 3.2.4
> and INFORMIX ONLINE 5.0
>
> After some hundret lines of printing
> in a Report i got the Error -4518
> while printing a decimal(16,2) Variable
> with USING "format"
>
> -- here is the code-cut where the Debugger signals the error
>
> AFTER GROUP OF e.hozu
> PRINT COLUMN 57," ",vp21 USING "##&.&&"
>
> -- here is the error message
>
> -4518: The 4GL program cannot allocate any more space for temporary > string storage
> Does anyone have a solution to solve this
> problem without big expense ?
not usually...
You should find a good write up in the FAQ, but here is the low down.
4518 error is Informix getting lost when using its internal temp string space.
When this happens (possibly anywhere in the program), other things that
use the temp space will slowly eat it up until you run out. Chances
are that the place of the runtime error is not the source of the memory
mangler.
Do a finderr -4518 and check for everything it says. Check the FAQ for more
things to look for. Also, one that the FAQ does not mention, but I have had
problems with is:
Assignment of a null string into a larger string, for example:
let small_string = null
...
let big_string[5,10] = small_string
solution is
if small_string is not null then
let big_string[5,10] = small_string
end if
There are code fragments to help you isolate the source of the problem by
executing something that will blow immediately instead of after a
few hundred lines of your report, but you are better off starting by
checking for the things known to cause problems first. I must admit, however
that the code bomb is how I eventually found my problem.
Best of Luck...
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Miguel A. Caldera ! Antares Development Corp. ! Phone (210) 490-9626
mac@antares-dev.com ! 1000 Central Pkwy North ! Fax (210) 490-0874
73564,2200 Compuserve ! San Antonio, TX 78232 USA ! #include <std_disclaim.h>
-----------------------------------------------------------------------------
=-> I haven't lost my mind, I know exactly where I left it!!! <-=