Unicode and threads

Discussion of open issues, suggestions and bugs regarding usage of dbExpress drivers for SQL Server in Delphi and C++Builder
Post Reply
KotBur
Posts: 2
Joined: Mon 21 Apr 2008 05:44

Unicode and threads

Post by KotBur » Mon 21 Apr 2008 10:07

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?

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Thu 24 Apr 2008 08:34

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.

KotBur
Posts: 2
Joined: Mon 21 Apr 2008 05:44

Post by KotBur » Wed 07 May 2008 12:01

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).

Post Reply