Re: Freeing memory used by sqlda in ESQL/C
Posted in 1994
Try freeing the sql object identifier, seems to work for me (online 4.1, esql/c 4.1), quite curiously though: When I perform $prepare sqlobj ... $decribe ... $free sqlobj I have less memory that before the $prepare , but if I reuse sqlobj: prepare, describe and free it again I end up with the same amount of memory as after the first execution. No matter how many times I reuse it the amount of memory remains the same. Of course you still have to free memory for the data and index variables. (if you've come this far you'll probably want to use/display datetime/interval values - which most likely won't work. Check out the patches by J. Laffler at mathcs.emory.edu in /pub/informix/informix-list/volumes/1993.09 by anonymous ftp - I'm currently working on them) Pawel Pietrusinski Centralny Instytut Ochrony Pracy Warsaw, Poland