Re: memory leak (well, kind of...) ?
Posted in 1993
In article <1291@tglobe2.tollpost-globe> ogj@tglobe2.tollpost.no (Oyvind Gjerstad) writes: >aland@informix.com (Colonel Panic) writes: > >>Sorry, but this *must* be a 4GL program. A pure ESQL/C program simply >>cannot generate a -4518. > >We have tracked down the problem, and it *is* an ESQL/C-program. The But not a *pure* ESQL/C program; you must have linked in one or more 4GL libraries. >problem was that we have functions in our libraries that are used from >both 4GL and C. The return from these functions must differ depending >on whether they are called from C or 4GL. In this case we had a >function that did a retquote() everytime it returned. This apparently >filles TSS with return values. > >This very simple esql/c program demonstrates this: >main() { for(;;) retquote("foo"); } It won't link using pure ESQL/C: ld: Undefined symbol _retquote >Oeyvind Gjerstad Systems dept Tollpost-Globe AS N-6301 Aandalsnes/Norway >E-mail: ogj@tglobe2.tollpost.no Phone: (+47 72) 26 663 Fax: (+47 72) 26 694 -- Alan Denney aland@informix.com {pyramid|uunet}!infmx!aland "I'd quit my job, if I had one and I'd leave my wife, if she hadn't already gone..." -- Trout Fishing in America