[unixODBC-dev] (no subject)

Nick Gorham nick at lurcher.org
Fri Aug 15 08:10:27 BST 2008

Igor Korot wrote:

>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?
Seems ok, can you provide any code I can run that causes the problem?

Do you set param to be empty first ?


More information about the unixODBC-dev mailing list