Accessing Informix using BDE in a DLL.

I have a dll that uses BDE to access an Informix database. It works fine
until i close the host exe, when i get an A/V in kernel32.dll that forces me
to reboot. I simplified my code the way it just create, open, close e free a
TDatabase and the error persists.

This error doesn't happen when i connect to a SQL Server database, so i
suspect the problem is caused by a BDE / I4mix SQLLink / I-Connect
combination.

I'm using Win98, Bde 5.11, I-Connect 9.00TC1.

Does anyone know how fix this?

Thanks in advance.

--
Fbio Lopes
fblo...@wpd.com.br