Re: (no subject)

Nick Gorham <[email protected]>
Newsgroups gmane.comp.db.unixodbc.devel
Message-ID <[email protected]>
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 ?

-- 
Nick
_______________________________________________
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.