[unixODBC-dev] SQLDriverConnectW() returns an error !

Nick Gorham nick at lurcher.org
Thu Jun 23 11:39:14 BST 2005

Anita Dixit wrote:
> Hi Nick,
> Thanks for the prompt reply!
> If I input the connection string as per below mentioned method, the program
> indeed proceeds. However, now there is a bus error during the execution of
> the same API - SQLDriverConnectW.
> Stack frames show that unixODBC SQLDriverConnectW API calls the driver's
> SQLDriverConnectW. This in turn calls the driver's own function but the
> program fails for wcslen() function.
> Do you think if anything is further missing in the sample program?
> Thanks again.
> Regards,
> Anita

It may be that the driver (you didn't say which one) is expecting 4 byte 
unicode. in which case recompile unixODBC with SQL_WCHART_CONVERT defined.

Nick Gorham
Easysoft Limited

More information about the unixODBC-dev mailing list