I am using an ODBC (3.51.12) connector to access a MySQL Database in a Visual C++ application (CRecordSet...).

I have wrap the access to the database in a dll which I call from the main application. It seems to work fine, but when I begin to access a lot of times to the database, sometimes the "Connector ODBC" Dialog is displayed (even if I use noOdbcDialog flag when openning the database with OpenEx).

What am I doing wrong?