(no subject)

Igor Korot <[email protected]>
Newsgroups gmane.comp.db.unixodbc.devel
Message-ID <17564241.1218773725010.JavaMail.root@elwamui-karabash.atl.sa.earthlink.net>
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.

_______________________________________________
unixODBC-dev mailing list
[email protected]
http://mail.easysoft.com/mailman/listinfo/unixodbc-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.