Page 1 of 1
NativeClient and large Geometry
Posted: Mon 05 Jul 2010 17:49
by Aufhauser
I have problems using NativeClient and Geometry.
After setting:
TMSConnection.Options.Provider:=prNativeClient
I cannot load geometryblobs lager than 8016 bytes using 'Field.AsString' or 'Field.Value' because all bytes higher than 8016 are set to 0.
If I change the provider to prSQL everything works correct. I think, using NativeClient is the better way to connect to SQLServer, so will you fix the bug?
Posted: Thu 08 Jul 2010 14:29
by Challenger
We could not reproduce this problem. I have tried to insert MULTIPOINT geometry object with many points. And get the value through the Value property of TField. The VarArrayHighBound returns > 10000. Please try to compose a small sample.
Posted: Thu 08 Jul 2010 19:17
by Aufhauser
Thanks for your answer.
The length from the AnsiString (or the ByteArray) is not the problem it is correct but the string is filled with 0-strings not with correct data. I created a little project to show the problem. To which adress should I send this project?
Stefan
Posted: Fri 09 Jul 2010 14:25
by Challenger
Please send it to alexh*devartcom.
Posted: Mon 19 Jul 2010 16:10
by Dimon
Thank you for information. We have reproduced this problem and fixed it. This fix will be included in the next SDAC build.
NativeClient and very large Geometry
Posted: Fri 13 Aug 2010 07:41
by Aufhauser
I have a new problem using very large geometry (greater than 32767 bytes). You can try following code (Delphi 7, actual version of SDAC)
SetLength(Blob1, 32767);
MyGeomField.AsString:= Blob1;
Blob2:= MyGeomField.AsString;
//
SetLength(Blob1, 32768);
MyGeomField.AsString:= Blob1;
Blob2:= MyGeomField.AsString; // Crash
Is this a new problem or is it also fixed in next build of SDAC?
Posted: Fri 13 Aug 2010 12:10
by Dimon
We have fixed this problem. This fix will be included in the next SDAC build.
Posted: Fri 13 Aug 2010 18:10
by Aufhauser
Great,
when can I get this new version?
Stefan
Posted: Mon 16 Aug 2010 09:46
by Dimon
The next SDAC build will be released in several days.
Posted: Mon 16 Aug 2010 14:36
by Aufhauser
I just installed the new version 4.80.0.60. The first bug (reading the data) is fixed, the second bug (writing very large data) is still present in this version. Can you please include the fix in the actual build?
Stefan
Posted: Tue 17 Aug 2010 12:01
by Dimon
We can send you a custom build with the fix. Please contact us by dmitryg*devart*com email and specify your developer license number.
very large geometry
Posted: Thu 16 Sep 2010 09:27
by Aufhauser
Sorry, once again my problem with very large geometry.
Your last fix moved the limit from 32767 bytes to 65536 bytes but did not solve the problem (Because of compatibility problems with ODAC I could not test the custom build in production eviroment):
I get no exception using:
GeomField.AsAnsiString:= MyLargeGeomString
but after updating the field I get the .NET Framework error: SystemIO.EndOfStreamException.
SDAC truncates the string to a length of 65536 Bytes. You can reproduce the problem using following code:
//
SetLength(Blob1, 85000);
MyGeomField.AsAnsiString:= Blob1;
Blob2:= MyGeomField.AsAnsiString;
If Blob1 Blob2 then
raise exception.Create('Error');
Posted: Tue 21 Sep 2010 13:54
by Dimon
Thank you for information. We have reproduced this problem and fixed it. This fix will be included in the next SDAC build.
Posted: Thu 21 Oct 2010 12:24
by Aufhauser
Hello,
when will you release the version with the fix? I am waiting since july for a version, which works with geometry fields.
Stefan
Posted: Mon 25 Oct 2010 16:06
by Dimon
We are planning to release the new build of SDAC in the course of the next week.