Re: malloc() problem with ESQL/C, Informix Online 7.1
Posted in 1996
Topics: Connectivity: ESQL/C, 4GL & Embedded SQL, Networking & sqlhosts Configuration
David Anderson wrote: > > I'm having problems with an ESQL/C program: > a malloc() of about 12 MB fails, returning ENOMEM. > > The same program works fine with Informix SE. > > This sounds like a shared-memory-related problem. > Any ideas or help would be greatly appreciated. > I'm going to guess that you are making a shared memory connnection, since I think if you made a network connection this would work. Anyway, you probably just need to set a new environment variable INFORMIXSHMBASE. Check 4-47 of the Informix guide to sql reference manual, ver 7.1. There were changes on how shared memory connections were made and were they attach. This can affect how much private memory can be malloced. I belive the default value of INFORMIXSHMBASE is 0x80000, which I think turns out to be about 8 Meg, so if you need 12Meg I think you should be able to set INFORMIXSHMBASE to 16384 which would give you 16 Meg to work with. Jacques ************************************************************************ * * Jacques P. Renaut "I'd dazzle you with brilliance * Informix Tech Support if I only had the knack..." * email: jrenaut@informix.com * ************************************************************************