Page 1 of 1

Unicode and threads

Posted: Mon 21 Apr 2008 10:07
by KotBur
Hello,

I wrote multi-threaded application.

I use marshaling of DataSetProvider.IAppServer interface form main thread to worker threads.

If UseUnicode = False then all works ok.
If UseUnicode = True then I got Acces Violation error :(

Any clues?

Posted: Thu 24 Apr 2008 08:34
by Antaeus
Please, send us a complete small sample at dbxsda*crlab*com to demonstrate the problem, including script to create and fill table.
Also supply the following information:
- exact version of DbxSda.
- exact version of your IDE;
- exact version of SQL server and client.

Posted: Wed 07 May 2008 12:01
by KotBur
I found a solution.

There was a query with 'case'. I surrounded it with 'cast'.
It works ok now.

Maybe null or some other value is typed in another way when UseUnicode is set to True/False. (There aren't any nvarchar fields returned in this query).