Page 1 of 1

Migration to DBX4

Posted: Mon 04 Aug 2008 13:13
by Tom Rage
Hi,
I migrated my D2005/FB1.5 dbexpress application to D2007 for Win32.
Everything seems to work ok except for writing a component to a blob field. I get the reconcile action dialog with error : "Incorrect values within SQLDA structure".
My versions are:
Windows Vista Business 32-bit (latest updates)
Delphi 2007 11.0.2902.10471
FireBird 2.1.1 (win 32)
DbxIda 2.20.7
gds32.dll 6.3.1.17910
midas.dll 11.0.2902.10471

Code snippet of how the blobstream is filled:
var BlobStream: TClientBlobStream;
ATreeView : TTreeView;
begin
...
if ACDS.FindField(ATreeView.Name) nil then
begin
TBlobField(ACDS.FieldByName(ATreeView.Name)).Clear;
BlobStream := TClientBlobStream.Create(TBlobField(ACDS.FieldByName(ATreeView.Name)),
bmWrite);
try
BlobStream.Position := 0;
BlobStream.WriteComponent(ATreeView);
finally
BlobStream.Free;
end;
...

The blobfield is a BLOB SUB_TYPE 0 SEGMENT SIZE 80.

What should I change to make this code also work with my new configuration?
Tx, Tom

Posted: Tue 05 Aug 2008 07:40
by Plash
We could not reproduce the problem. Please send to dbxida*devart*com a complete small sample that demonstrates the problem, including the script for creating database objects.