Icon View Incident Report

Serious Serious
Reported By: Ralf Bieber
Reported On: 11/22/2007
For: Version 1.06 Build 1
# 2474 Unicode ElevateDB Manager Has Problems with Loading SQL Files Due to Bug in BDS 2006 WideStrings

General problem with "EDB-Database" UNIcode and Delphi 2006. The Borland/Codegear Delphi 2006 unit "WideStrings" have a error. In Delphi 2007 the error is corrected. In the procedure "TWideStrings.LoadFromStream(Stream: TStream)" is the sequence below.

"SetString" set the length from S to Size*sizeof(Widechar). The result is, S has the double length as the source. Codegear workaround in Delphi 2007:

SetString(S, nil, Size div SizeOf(WideChar));

You can test it in the "UNIcode-edbmgr". If you save a SQL-script and reopen it, then you can see the orignal text is extended with other text.

var
..
  S: WideString;
..
Size := Stream.Size - Stream.Position;
SetString(S, nil, Size);



Comments Comments
We are now compiling all Unicode utilities and modules with CodeGear RAD Studio 2007 to avoid this issue.


Resolution Resolution
Fixed Problem on 11/25/2007 in version 1.07 build 1


Products Affected Products Affected
ElevateDB Additional Software and Utilities

Image