Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Mauro Ciaccio's .NET service polls Informix every 5 seconds and fails after 1-3 hours with ODBC error HY001 memory allocation failure (driver 3.34, Windows 2000 and 2003). Paul Watson suspected unclosed connections. Mauro said he uses a using block and asked if explicit closing is needed. Paul could not comment on ODBC and suggested stepping through the code while watching onstat -g ses. Unresolved.
Auto-generated by Claude from the posts below — may be imperfect; read the full thread.
Hi,
we have recently deployed a .NET Service application to a client, which
connects to an Informix database at polling intervals of 5 seconds
During the course of integration testing the client is consistently
getting the following memory allocation error:
ERROR [HY001] [Informix][Informix ODBC Driver]Memory allocation failure
>From our service, we are making ODBC calls ALWAYS passing in-line SQL
statements.
The error occurs as little as 1-3hrs after the service has started
running. The client has observed this error both an Windows Server 2000
and Server 2003 setup. In either case they are running the ODBC Driver:
Informix 3.34 32 BIT ICLIT09B.DLL
I have found the following post on the same problem, but it never
received any reply.
http://groups.google.co.uk/group/comp.databases.informix/browse_frm/thread/4daabe1835263363/48b6b02eecb0cb91?q=memory+allocation+error+odbc+informix&rnum=1&hl=en#48b6b02eecb0cb91
Any help would be greatly appreciated.
Thanks
Mauro Ciaccio
↪ replying to mauroc@beacon-ct.co.uk
Paul Watson — — source: Usenet: comp.databases.informix
sounds like you are not closing the connections, that's what I'd check first
mauroc@beacon-ct.co.uk wrote:
> Hi,
>
> we have recently deployed a .NET Service application to a client, which
> connects to an Informix database at polling intervals of 5 seconds
>
> During the course of integration testing the client is consistently
> getting the following memory allocation error:
>
> ERROR [HY001] [Informix][Informix ODBC Driver]Memory allocation failure
>
>>From our service, we are making ODBC calls ALWAYS passing in-line SQL
> statements.
>
> The error occurs as little as 1-3hrs after the service has started
> running. The client has observed this error both an Windows Server 2000
> and Server 2003 setup. In either case they are running the ODBC Driver:
>
> Informix 3.34 32 BIT ICLIT09B.DLL
>
> I have found the following post on the same problem, but it never
> received any reply.
>
> http://groups.google.co.uk/group/comp.databases.informix/browse_frm/thread/4daabe1835263363/48b6b02eecb0cb91?q=memory+allocation+error+odbc+informix&rnum=1&hl=en#48b6b02eecb0cb91
>
> Any help would be greatly appreciated.
>
> Thanks
>
> Mauro Ciaccio
>
--
Paul Watson #
Oninit Ltd # Growing old is mandatory
Tel: +44 1436 672201 # Growing up is optional
Fax: +44 1436 678693 #
Mob: +44 7818 003457 #
www.oninit.com #
Hi,
thanks for the rapid reply. As far as closing the connections is
concerned, I am declaring them as follows
using (OdbcConnection con = new OdbcConnection(ConnectionString))
with the "using" statement which means they will be disposed of when I
exit my method. Should I instead be closing and setting to nothing
explicitly? Is there any chance that the System.Data.ODBC is not
working correctly with the "using" statement.
Thanks for your help
↪ replying to mauroc@beacon-ct.co.uk
Paul Watson — — source: Usenet: comp.databases.informix
Can't comment 'cos I don't use ODBC, but it must be worth a try, you
should be able to test this easily by stepping through the code and
monitoring the memory usage under onstat -g ses
mauroc@beacon-ct.co.uk wrote:
> Hi,
>
> thanks for the rapid reply. As far as closing the connections is
> concerned, I am declaring them as follows
> using (OdbcConnection con = new OdbcConnection(ConnectionString))
>
> with the "using" statement which means they will be disposed of when I
> exit my method. Should I instead be closing and setting to nothing
> explicitly? Is there any chance that the System.Data.ODBC is not
> working correctly with the "using" statement.
>
> Thanks for your help
>
--
Paul Watson #
Oninit Ltd # Growing old is mandatory
Tel: +44 1436 672201 # Growing up is optional
Fax: +44 1436 678693 #
Mob: +44 7818 003457 #
www.oninit.com #
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.