Re: ESQL/C dynamic SQL and BLOBS
Posted in 1995
In article <3lgo9o$9rs@aristotle.algonet.se> mikehunt@algonet.se (Mike Johnson) writes: >Jan Nord'n (jano@algonet.se) wrote: > >[stuff about self allocating BLOB memory deleted] > >Jan, don't bother with asking Informix to handle this for you. You >don't mention which version of Online you are using but in my experience >of version 5.0x it is not worth the bother. It leaks memory like >hell. Allocate the buffers yourself and take control! > >Mike. > I don't think you have any control of how OnLine is allocating the memory on the sever side. On the client side this is strictly an ESQL/C issue. How do you know how much memory to allocate for the blob in advance? I have written a general purpose industrial strength mechanism on the PC under WINDOWS, (the original poster's environment) and have had no problems with memory leaks. Scott