[unixODBC-dev] (no subject)

Igor Korot ikorot at earthlink.net
Fri Aug 15 05:15:24 BST 2008


Hi, (Nick),
What is the proper way to call SQLConfigDataSource()?

My code (pseudo-code):

SQLWCHAR *dsn = "mySQL"
SQLWCHAR param[254];
ret = SQLConfigDataSource( HWND, ODBC_ADD_DSN, dsn, param );
if( ret != SQL_SUCCESS )
{
// show error message
}

The code executes fine, according to the log file: function gives SQL_SUCCESS 2 times from SQLDataSourceW.c

But then the program crashes.

Doing "bt" in gdb shows that the crash occuring in the libodbcinst.so.1.

Any thoughts?

Thank you.




More information about the unixODBC-dev mailing list